[Python-ideas] Rehabilating reduce (as "fold")
Alexander Belopolsky
alexander.belopolsky at gmail.com
Fri Jul 12 21:53:50 CEST 2013
On Fri, Jul 12, 2013 at 10:54 AM, Barry Warsaw <barry at python.org> wrote:
> >(Independent of this idea, it would actually be nice if the operator
> module
> >had a dictionary mapping from op symbols to names, like
> >operator.by_symbol["+="] giving operator.iadd)
>
> ...but this is a neat idea.
-1
This is neat, but I don't really see much use beyond implementing things
like fold("+=", ..) that you've just rejected.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130712/9dcc324e/attachment.html>
More information about the Python-ideas
mailing list