LAMBDA IS IT USELESS?

Bengt Richter bokr at accessone.com
Sat Jul 14 12:38:20 EDT 2001


On Sat, 14 Jul 2001 08:25:26 GMT, "Fredrik Lundh" <fredrik at pythonware.com> wrote:

>Bengt Richter wrote:
>> In that case why not allow an anonymous version of def, e.g..,
>>
>>     map(
>>         def(x):
>>             x**2
>>         ,xrange(5))
>
>you forgot something:
>
>     map(
>         def(x):
>             return x**2
>         , xrange(5))
>
>Cheers /F
>
>
Doh




More information about the Python-list mailing list