why 'lambda' and 'reduce'?
Irmen de Jong
irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Thu Jun 12 22:36:52 CEST 2003
John Roth wrote:
> "Manuel Garcia" <news at manuelmgarcia.com> wrote in message
> news:arnfevstdtqohla2l39717ch56saip8qce at 4ax.com...
>>If anyone ever asks for what good are 'lambda' and 'reduce', show them
>>print (lambda p:p+'.'+p[1:])(
>> (lambda F:(lambda S:reduce(
>> lambda n:reduce(lambda x,_:(
>>You have to be a bit patient with this one...
> One thing is perfectly clear. Unless someone paid
> me to do it, I wouldn't look at it. And part of
> the agreement would be to refactor it into something
> at least marginally readable.
A million times zero readability is still zero readability ;-)
Anyway it ran quite fast indeed... somehow I don't expect
this kind of unreadable and horribly nested code to run
fast too. Never mind. :-)
More information about the Python-list