[Issue 8755] Change the order of reduce arguments

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 20 20:02:11 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=8755



--- Comment #15 from wihkman <daniel350 at bigpond.com> 2014-03-20 20:02:07 PDT ---
Why is reduce (sorry, fold) allowing multiple function arguments in the first
place?

If you want to compose functions to avoid another O(n) iteration, then you
should compose the reduce function to return a tuple yourself.

That way it is clear what the code is doing, instead of this magic N-tuple
special case return type.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list