array.sum

Sum of the elements that are not na (0 for an empty array).

array.sum(id: array<int/float>) -> element type

Parameters

Example

total = a.sum()