[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: map/filter/reduce/lambda opinions and background
From: Stian =?iso-8859-1?Q?S=F8iland?= <stian () soiland ! no>
Date: 2005-07-06 18:47:51
Message-ID: 20050706184751.GU12095 () itea ! ntnu ! no
[Download RAW message or body]
On 2005-07-06 01:46:05, Steven D'Aprano wrote:
> I had NEVER even heard the word "tuple" before learning Python. I spent
> weeks mispelling it as "turple", and I finally had to look it up in a
> dictionary to see if it was a real English word. Out of the four English
> dictionaries in my house, none of them have the word.
Agree, I have the problem of writing "tupple" in all comments and
documentations. It's a weird word indeed =)
> t = immutable_list(L)
> map(anonymous_function x: x+1, L)
Hey, I know!
t = python.util.ImmutableArrayList.fromCollection(L.getAbstractCollection())
python.util.functional.applyFunctionOnCollection(
(class implements python.util.functional.AnonymousFunction:
def anonymousFunction(x):
return x+1
), L)
--
Stian Søiland Work toward win-win situation. Win-lose
Trondheim, Norway is where you win and the other lose.
http://soiland.no/ Lose-lose and lose-win are left as an
exercise to the reader. [Limoncelli/Hogan]
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic