View Single Post
Old Feb 3rd, 2006, 3:46 PM   #11
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
But, on the other hand:
[i * i for i in l if i % 2 == 0]
is more pleasant than
map(lambda x : x * x, filter(lambda x : x % 2 == 0, l))
Not that it's hard to create map and filter functions yourself, if you really want to
Arevos is offline   Reply With Quote