reduce -> fold?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Wed Feb 3 08:40:49 PST 2016


On 02/03/2016 10:18 AM, Atila Neves wrote:
> I guess this is to be a brand new PR? I've been reading the old one and
> the discussions. A lot of unanswered questions there and I have a new
> opinion on at least one of them.

If by the old one you mean the valiant effort to overload reduce, forget 
it. Just add fold as a one-liner that forwards to reduce. -- Andrei


More information about the Digitalmars-d mailing list