Can't chain reduce(seed, range)

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 31 01:01:33 PDT 2015


On Monday, 31 August 2015 at 01:32:01 UTC, Yuxuan Shui wrote:
> Why is reduce defined as 'auto reduce(S, R)(S seed, R r)', 
> instead of reduce(R r, S seed)? I can't chain it.
>
> Maybe provide both?

You might be interested in this PR
https://github.com/D-Programming-Language/phobos/pull/1955

It's a bit old, left a ping to see what's up.


More information about the Digitalmars-d-learn mailing list