sum

open fun sum(): Double

Returns the sum of all elements in the array.

Return

the sum of all elements