sum

fun sum(): Double(source)

Returns the sum of all elements in the list.