reduce -> fold?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 29 12:36:06 PST 2016


On 01/29/2016 08:11 AM, 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 :-)

Good point, thanks! -- Andrei


More information about the Digitalmars-d mailing list