www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - reduce! and ufc

reply "y" <dlang srtnwz.com> writes:
hi,

is there any reason that the
auto reduce(S, R)(S seed, R r) if (isIterable!R);
parameters are not the other way around?

its kind of not very handy when you do large ufc stuff
Jun 02 2015
parent reply Jonathan M Davis via Digitalmars-d-learn writes:
On Tuesday, June 02, 2015 08:57:02 y via Digitalmars-d-learn wrote:
 hi,

 is there any reason that the
 auto reduce(S, R)(S seed, R r) if (isIterable!R);
 parameters are not the other way around?

 its kind of not very handy when you do large ufc stuff
Because it predates UFCS. - Jonathan M Davis
Jun 02 2015
parent "y" <dlang srtnwz.com> writes:
On Tuesday, 2 June 2015 at 10:04:56 UTC, Jonathan M Davis wrote:
 On Tuesday, June 02, 2015 08:57:02 y via Digitalmars-d-learn 
 wrote:
 hi,

 is there any reason that the
 auto reduce(S, R)(S seed, R r) if (isIterable!R);
 parameters are not the other way around?

 its kind of not very handy when you do large ufc stuff
Because it predates UFCS. - Jonathan M Davis
for further reference: https://issues.dlang.org/show_bug.cgi?id=10670 https://github.com/D-Programming-Language/phobos/pull/1955
Jun 02 2015