
Dec. 5, 2009
5:01 p.m.
On Sat, Dec 5, 2009 at 6:45 PM, Andre Engels <andreengels@gmail.com> wrote:
On Sat, Dec 5, 2009 at 12:55 PM, Ram Rachum <cool-rr@cool-rr.com> wrote:
I noticed that `sum` tries to add zero to your iterable. Why? Why not just skip adding any start value if none is specified?
This current behavior is preventing me from using `sum` to add up a bunch of non- number objects.
In your proposed implementation, sum([]) would be undefined.
Which would make it consistent with min/max. George