[Python-3000] map, filter, reduce
Terry Reedy
tjreedy at udel.edu
Fri Jun 1 23:44:48 CEST 2007
"Georg Brandl" <g.brandl at gmx.net> wrote in message
news:f3prce$9c$1 at sea.gmane.org...
| How should an "ireduce" work? The result is not a sequence which could be
| returned lazily.
It would generate the sequence of partial reductions (potentially
indefinately).
list(ireduce(summer, 0, range(5)) = [0, 1, 3, 6, 10]
This is obviously *not* the same as a reduce() which only returns the final
value without the intermediate values.
Terry Jan Reedy
More information about the Python-3000
mailing list