sum

open fun sum(array: List<Double>): Double

Calculate the sum of a list of numbers.

Return

return total number added up.

Parameters

array

a list of numbers.