Python Tutorial Was: Guido's regrets: filter and map

Greg Ewing see_reply_address at something.invalid
Wed Nov 27 21:48:32 EST 2002


Lulu of the Lotus-Eaters wrote:

> 
>   reduce = lambda func, seq:
>            [(l.append(func(l[i],seq[i])),l[-1])
>                            for l in [[init]]
>                            for i in range(len(seq))][-1][1]
> 
> Now you've seen one :-).


Um... well, what I meant was, nobody's proposed
a special syntax for it that's significantly
better than what we've got already.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list