natsu allows you to sum()
with Python objects of any class that implements __add__()
.
pip install natsu
from natsu import sum
sum(some_iterable)
natsu.sum()
is fully backwards-compatible with the built-in sum()
function.
natsu is licensed under the MIT License.