[Issue 4729] std.algorithm: strange iota behaviour
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 4 18:36:59 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=4729
--- Comment #7 from bearophile_hugs at eml.cc 2013-01-04 18:36:53 PST ---
(In reply to comment #6)
> The problem here is that no start value is given.
In this case Python raises an error. I think this is acceptable:
>>> reduce(lambda a,b: a * b, [])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: reduce() of empty sequence with no initial value
--
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