[Python-Dev] [Python-checkins] cpython: Add optional *func* argument to itertools.accumulate().
Daniel Stutzbach
stutzbach at google.com
Tue Mar 29 00:51:56 CEST 2011
On Mon, Mar 28, 2011 at 12:49 AM, Raymond Hettinger <
raymond.hettinger at gmail.com> wrote:
> Do a google code search for R's builtin functions cumsum, cumprod, cummin,
> and cummax. Look at mumpy's accumulate ufunc which works with many
> operators. APL and K also have an accumulate tool which takes arbitrary
> functions.
>
Thanks. I had not been thinking along numeric lines. I can see how these
would be useful for working with matrices, vectors, and similar constructs.
--
Daniel Stutzbach
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20110328/0272073c/attachment.html>
More information about the Python-Dev
mailing list