"Georg Brandl" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
| 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







_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to