maximum element?

Ivan Voras ivoras at __geri.cc.fer.hr
Fri Mar 5 02:37:47 CET 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