sum

@JvmName("sumOfByte") fun Array<out Byte>.sum(): Int (source)
@JvmName("sumOfShort") fun Array<out Short>.sum(): Int (source)
@JvmName("sumOfInt") fun Array<out Int>.sum(): Int (source)
@JvmName("sumOfLong") fun Array<out Long>.sum(): Long (source)
@JvmName("sumOfFloat") fun Array<out Float>.sum(): Float (source)
@JvmName("sumOfDouble") fun Array<out Double>.sum(): Double (source)
fun ByteArray.sum(): Int (source)
fun ShortArray.sum(): Int (source)
fun IntArray.sum(): Int (source)
fun LongArray.sum(): Long (source)
fun FloatArray.sum(): Float (source)
fun DoubleArray.sum(): Double (source)

Returns the sum of all elements in the array.

@JvmName("sumOfByte") fun Iterable<Byte>.sum(): Int (source)
@JvmName("sumOfShort") fun Iterable<Short>.sum(): Int (source)
@JvmName("sumOfInt") fun Iterable<Int>.sum(): Int (source)
@JvmName("sumOfLong") fun Iterable<Long>.sum(): Long (source)
@JvmName("sumOfFloat") fun Iterable<Float>.sum(): Float (source)
@JvmName("sumOfDouble") fun Iterable<Double>.sum(): Double (source)

Returns the sum of all elements in the collection.