[Issue 12407] reduce cannot deduce argument types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 18 18:35:16 PDT 2014


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bearophile_hugs at eml.cc
         Resolution|                            |INVALID


--- Comment #1 from bearophile_hugs at eml.cc 2014-03-18 18:35:14 PDT ---
I think this is an invalid issue. reduce currently takes as first argument the
seed and as second the range. This is the correct code:

return 1 + reduce!((a, b) => a + b)(0L, sub.map!(s => s.fun));

There are plans in fixing reduce.

Also voting your own entry, and doing it twice, is not so good :-)

-- 
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