maximum element?

Ivan Voras ivoras at __geri.cc.fer.hr
Thu Mar 4 20:37:47 EST 2004


JCM wrote:

> reduce(lambda x, y: (x, y)[x < y], list)
> 
> Sorry, couldn't resist.

Actually, I thought that the 'better' way would be using a lambda 
function but then again, I was waaay wrong :)))

Thanks, all :)



More information about the Python-list mailing list