http://d.puremagic.com/issues/show_bug.cgi?id=9687
Summary: `std.algorithm.reduce` with default values isn't
UFCS-able in regard to range
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Denis Shelomovskij <[email protected]> 2013-03-11
09:02:36 MSK ---
As `reduce` accepts range as the last argument when used with default values
one can't use it in UFCS chain like this:
---
range.map!f().filter!g().reduce!h(x)
---
Currently `reduce` can only be used like this:
---
reduce!h(x, range.map!f().filter!g())
---
which is ugly.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------