Sums initial and the items of an iterable and returns the total.
initial
The total sum of initial and iterable elements.
sum([1, 2, 3, 4])// 10sum([1, 2, 3, 4], 5)// 15
The elements to add to initial.
Optional
Generated using TypeDoc
Sums
initial
and the items of an iterable and returns the total.Returns
The total sum of initial and iterable elements.
Example