sumOf

Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun <T> Array<out T>.sumOf(
    selector: (T) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun ByteArray.sumOf(
    selector: (Byte) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun ShortArray.sumOf(
    selector: (Short) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun IntArray.sumOf(
    selector: (Int) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun LongArray.sumOf(
    selector: (Long) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun FloatArray.sumOf(
    selector: (Float) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun DoubleArray.sumOf(
    selector: (Double) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun BooleanArray.sumOf(
    selector: (Boolean) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun CharArray.sumOf(
    selector: (Char) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun <T> Array<out T>.sumOf(
    selector: (T) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun ByteArray.sumOf(
    selector: (Byte) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun ShortArray.sumOf(
    selector: (Short) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun IntArray.sumOf(
    selector: (Int) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun LongArray.sumOf(
    selector: (Long) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun FloatArray.sumOf(
    selector: (Float) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun DoubleArray.sumOf(
    selector: (Double) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun BooleanArray.sumOf(
    selector: (Boolean) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun CharArray.sumOf(
    selector: (Char) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun <T> Array<out T>.sumOf(
    selector: (T) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun ByteArray.sumOf(
    selector: (Byte) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun ShortArray.sumOf(
    selector: (Short) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun IntArray.sumOf(
    selector: (Int) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun LongArray.sumOf(
    selector: (Long) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun FloatArray.sumOf(
    selector: (Float) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun DoubleArray.sumOf(
    selector: (Double) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun BooleanArray.sumOf(
    selector: (Boolean) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun CharArray.sumOf(
    selector: (Char) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun <T> Array<out T>.sumOf(
    selector: (T) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun ByteArray.sumOf(
    selector: (Byte) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun ShortArray.sumOf(
    selector: (Short) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun IntArray.sumOf(
    selector: (Int) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun LongArray.sumOf(
    selector: (Long) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun FloatArray.sumOf(
    selector: (Float) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun DoubleArray.sumOf(
    selector: (Double) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun BooleanArray.sumOf(
    selector: (Boolean) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun CharArray.sumOf(
    selector: (Char) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun <T> Array<out T>.sumOf(
    selector: (T) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun ByteArray.sumOf(
    selector: (Byte) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun ShortArray.sumOf(
    selector: (Short) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun IntArray.sumOf(
    selector: (Int) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun LongArray.sumOf(
    selector: (Long) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun FloatArray.sumOf(
    selector: (Float) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun DoubleArray.sumOf(
    selector: (Double) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun BooleanArray.sumOf(
    selector: (Boolean) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun CharArray.sumOf(
    selector: (Char) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> ULong
): ULong
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> ULong
): ULong
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun <T> Array<out T>.sumOf(
    selector: (T) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun ByteArray.sumOf(
    selector: (Byte) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun ShortArray.sumOf(
    selector: (Short) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun IntArray.sumOf(
    selector: (Int) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun LongArray.sumOf(
    selector: (Long) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun FloatArray.sumOf(
    selector: (Float) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun DoubleArray.sumOf(
    selector: (Double) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun BooleanArray.sumOf(
    selector: (Boolean) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun CharArray.sumOf(
    selector: (Char) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigInteger") inline fun <T> Array<out T>.sumOf(
    selector: (T) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun ByteArray.sumOf(
    selector: (Byte) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun ShortArray.sumOf(
    selector: (Short) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun IntArray.sumOf(
    selector: (Int) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun LongArray.sumOf(
    selector: (Long) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun FloatArray.sumOf(
    selector: (Float) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun DoubleArray.sumOf(
    selector: (Double) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun BooleanArray.sumOf(
    selector: (Boolean) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") inline fun CharArray.sumOf(
    selector: (Char) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigDecimal") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigDecimal") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigInteger") @ExperimentalUnsignedTypes inline fun UIntArray.sumOf(
    selector: (UInt) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") @ExperimentalUnsignedTypes inline fun ULongArray.sumOf(
    selector: (ULong) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") @ExperimentalUnsignedTypes inline fun UByteArray.sumOf(
    selector: (UByte) -> BigInteger
): BigInteger
JVM
1.4
@JvmName("sumOfBigInteger") @ExperimentalUnsignedTypes inline fun UShortArray.sumOf(
    selector: (UShort) -> BigInteger
): BigInteger

Returns the sum of all values produced by selector function applied to each element in the array.

Common
JVM
JS
Native
1.4
@JvmName("sumOfDouble") inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> Double
): Double
Common
JVM
JS
Native
1.4
@JvmName("sumOfInt") inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> Int
): Int
Common
JVM
JS
Native
1.4
@JvmName("sumOfLong") inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> Long
): Long
Common
JVM
JS
Native
1.4
@JvmName("sumOfUInt") @ExperimentalUnsignedTypes inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> UInt
): UInt
Common
JVM
JS
Native
1.4
@JvmName("sumOfULong") @ExperimentalUnsignedTypes inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> ULong
): ULong
JVM
1.4
@JvmName("sumOfBigDecimal") inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> BigDecimal
): BigDecimal
JVM
1.4
@JvmName("sumOfBigInteger") inline fun <T> Iterable<T>.sumOf(
    selector: (T) -> BigInteger
): BigInteger

Returns the sum of all values produced by selector function applied to each element in the collection.