[Tutor] Lambda
Tobin, Mark
Mark.Tobin@attcanada.com
Fri, 20 Jul 2001 12:31:36 -0600
Remco Gerlich wrote:
>
> In many cases, list comprehensions can be used now where
> map/lambda used to
> be appropriate, and in my opinion at least they're more Pythonic:
Well maybe list comprehensions should be next, they don't look too scary ;-)
And yes they look really similar to map/lambda now that I have an idea of
what lambda does...
Thanks Remco
Mark
>
> L2 = [x*2 for x in L]
>
> > maybe trying to figure out lambdas and recursion in the
> same week was too
> > lofty a goal... ;-)
>
> Well, recursion is a profound, fundamental concept, lambda is
> just a quick
> notation :)
>
> --
> Remco Gerlich
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>