array.sum
Sum of the elements that are not na (0 for an empty array).
array.sum(id: array<int/float>) -> element type
Parameters
idarray<int/float>: An array of numbers; its na elements are skipped. na stops the script with a runtime error.
Example
total = a.sum()