Thread
:
The Demise of lambda, map, filter and reduce
View Single Post
Feb 4th, 2006, 9:10 AM
#
14
Arevos
Programming Guru
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power:
5
Well, even if they disappear, if you find yourself needing them, it's not hard to write them in:
(
Toggle Plain Text
)
def map(f, s): return [f(x) for x in s] def filter(f, s): return [x for x in s if f(s)]
def map(f, s): return [f(x) for x in s] def filter(f, s): return [x for x in s if f(s)]
Arevos
View Public Profile
Visit Arevos's homepage!
Find More Posts by Arevos