A Small Contribution to Phobos

Meta jared771 at gmail.com
Sun Jun 2 07:52:17 PDT 2013


> I think consuming all of a range evaluating front and doing 
> nothing should be the role of reduce with only one parameter 
> (the range). That overload would take the range to be 
> "exhausted" and return void. Thus your example becomes:

Maybe, then, it would be best to have a template that calls 
reduce in such a way, that makes it perfectly clear what is 
happening.



More information about the Digitalmars-d mailing list