map/filter/reduce/lambda opinions and background unscientific mini-survey

Stian Søiland stian at soiland.no
Wed Jul 6 14:47:51 EDT 2005


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]



More information about the Python-list mailing list