Abion47 / darq

A port of .NET's LINQ IEnumerable functions to Dart.
MIT License
85 stars 9 forks source link

Allow sum of an empty list #12

Closed pescuma closed 2 years ago

pescuma commented 3 years ago

And return 0 in that case. That makes sense if you think as sum as fold(0, (v,e) => v+e). Also, the code seems to supports that already, except for the exception in the beginning.