map/filter/reduce/lambda opinions and background unscientific mini-survey
devlai at gmail.com
Fri Jul 1 18:51:14 CEST 2005
None of them are really indispensible. Map and filter cab be replaced
with list comprehensions. reduce is redundant except when multiplying a
series; there's a sum function for a reason. Lambda looks cleaner in
some cases, but you don't gain any functionality.
What really struck me, though, is the last line of the abstract:
"I expect tons of disagreement in the feedback, all from
Guido wrote somewhere that the original map, filter, and reduce came
from a lisp hacker who missed them.
More information about the Python-list