reduce -> fold?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 29 13:00:43 PST 2016


On 1/29/2016 12:36 PM, Andrei Alexandrescu wrote:
> On 01/29/2016 08:11 AM, Luís Marques wrote:
>> 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

Given the different names for this used in different languages, I suggest in the 
documentation for 'fold' having an 'Also Known As' section, which will make it 
greppable.


More information about the Digitalmars-d mailing list