On Friday, 29 January 2016 at 13:11:34 UTC, Luís Marques wrote:
On Friday, 29 January 2016 at 12:08:01 UTC, Andrei Alexandrescu wrote:
So the next best solution is to introduce a new name such as the popular "fold", and put them together in the documentation.

Just to bikeshed a little, I remember that when I first started using std.algorithm I was ctrl-F'ing for "accumulate" and not finding it quite often. D competes with C++ directly, so do consider that name :-)

I'm not sure what the problem was, but the documentation for "reduce" already mentions "accumulate":

https://dlang.org/library/std/algorithm/iteration/reduce.html

Reply via email to