[Issue 4729] std.algorithm: strange iota behaviour

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 4 17:53:07 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=4729



--- Comment #5 from bearophile_hugs at eml.cc 2013-01-04 17:53:04 PST ---
(In reply to comment #4)
> In latest git head, throws an exception. Is this acceptable (should the bug be
> closed)?
> 
> Or is it better to have reduce return (ElementType!R).init?

The reduce of Python returns the start value:

>>> reduce(lambda a,b: a * b, [], 0)
0

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


More information about the Digitalmars-d-bugs mailing list