Python is Considered Harmful
Darius
ddarius at hotpop.com
Mon Oct 27 01:44:12 EST 2003
On Sun, 26 Oct 2003 22:25:41 -0800 (PST)
mike420 at ziplip.com wrote:
Ladies and Gentlemen,
I present to you the final and ultimate proof of mike420's
brain-damage:
In Haskell, we would express this as follows:
map (\f -> f 1) [\x -> x + 1 | i <- [0..2]]
This, of course, evaluates to the expected [2, 2, 2]
map(lambda f: f(1), [lambda x: x + 1 for i in range(3)])
What do you think this evaluates to: also [1, 2, 3] or [3, 3, 3]
as before?
It's [2, 2, 2] !
-
You are a blatant troll and now a public moron to boot. Will you please
go away? You may consider coming back when you learn 1+1=2.
More information about the Python-list
mailing list