Steven D'Aprano <st...@remove-this-cybersource.com.au> writes:

> Calling all functional programming fans... is Python's built-in reduce() 
> a left-fold or a right-fold?

I get:

>>> reduce(lambda a, b: a/b, [1.0, 2.0, 3.0])
0.16666666666666666

which looks like a left fold to me.

Tim.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to