[Python-ideas] Rehabilating reduce (as "fold")

Paul Moore p.f.moore at gmail.com
Fri Jul 12 12:11:17 CEST 2013


On 12 July 2013 09:03, Andrew Barnert <abarnert at yahoo.com> wrote:

> Meanwhile, there are an awful lot of people who just don't like
> reduce/fold in any situation. The quote "Inside every reduce is a loop
> trying to get out" appears quite frequently, on this list and elsewhere.


And yet we keep getting cases like the sum discussion which is a fold in
essence, but people reject suggestions of "just use a loop". So it doesn't
look like the loop is trying very hard to get out :-)

Whether "inside every specialised function there is a fold trying to get
out" is any more likely to gain traction, I don't know...

Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130712/b6853f9f/attachment.html>


More information about the Python-ideas mailing list