sum
fun ByteArray.sum(): Int
fun ShortArray.sum(): Int
fun IntArray.sum(): Int
fun LongArray.sum(): Long
fun FloatArray.sum(): Float
fun DoubleArray.sum(): Double
@ExperimentalUnsignedTypes fun ULongArray.sum(): ULong
@ExperimentalUnsignedTypes fun UByteArray.sum(): UInt
@ExperimentalUnsignedTypes fun UShortArray.sum(): UInt
Returns the sum of all elements in the array.
@JvmName("sumOfByte") fun Iterable<Byte>.sum(): Int
@JvmName("sumOfShort") fun Iterable<Short>.sum(): Int
@JvmName("sumOfInt") fun Iterable<Int>.sum(): Int
@JvmName("sumOfLong") fun Iterable<Long>.sum(): Long
@JvmName("sumOfFloat") fun Iterable<Float>.sum(): Float
@JvmName("sumOfDouble") fun Iterable<Double>.sum(): Double
Returns the sum of all elements in the collection.