sumOf

@JvmName(name = "sumOfDouble")
inline fun <T> Array<out T>.sumOf(selector: (T) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun ByteArray.sumOf(selector: (Byte) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun ShortArray.sumOf(selector: (Short) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun IntArray.sumOf(selector: (Int) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun LongArray.sumOf(selector: (Long) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun FloatArray.sumOf(selector: (Float) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun DoubleArray.sumOf(selector: (Double) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun BooleanArray.sumOf(selector: (Boolean) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun CharArray.sumOf(selector: (Char) -> Double): Double(source)
@JvmName(name = "sumOfInt")
inline fun <T> Array<out T>.sumOf(selector: (T) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun ByteArray.sumOf(selector: (Byte) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun ShortArray.sumOf(selector: (Short) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun IntArray.sumOf(selector: (Int) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun LongArray.sumOf(selector: (Long) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun FloatArray.sumOf(selector: (Float) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun DoubleArray.sumOf(selector: (Double) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun BooleanArray.sumOf(selector: (Boolean) -> Int): Int(source)
@JvmName(name = "sumOfInt")
inline fun CharArray.sumOf(selector: (Char) -> Int): Int(source)
@JvmName(name = "sumOfLong")
inline fun <T> Array<out T>.sumOf(selector: (T) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun ByteArray.sumOf(selector: (Byte) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun ShortArray.sumOf(selector: (Short) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun IntArray.sumOf(selector: (Int) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun LongArray.sumOf(selector: (Long) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun FloatArray.sumOf(selector: (Float) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun DoubleArray.sumOf(selector: (Double) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun BooleanArray.sumOf(selector: (Boolean) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun CharArray.sumOf(selector: (Char) -> Long): Long(source)
@JvmName(name = "sumOfDouble")
inline fun UIntArray.sumOf(selector: (UInt) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun ULongArray.sumOf(selector: (ULong) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun UByteArray.sumOf(selector: (UByte) -> Double): Double(source)
@JvmName(name = "sumOfDouble")
inline fun UShortArray.sumOf(selector: (UShort) -> Double): Double(source)
inline fun UIntArray.sumOf(selector: (UInt) -> Int): Int(source)
inline fun ULongArray.sumOf(selector: (ULong) -> Int): Int(source)
inline fun UByteArray.sumOf(selector: (UByte) -> Int): Int(source)
inline fun UShortArray.sumOf(selector: (UShort) -> Int): Int(source)
@JvmName(name = "sumOfLong")
inline fun UIntArray.sumOf(selector: (UInt) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun ULongArray.sumOf(selector: (ULong) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun UByteArray.sumOf(selector: (UByte) -> Long): Long(source)
@JvmName(name = "sumOfLong")
inline fun UShortArray.sumOf(selector: (UShort) -> Long): Long(source)

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

Since Kotlin

1.4

@JvmName(name = "sumOfDouble")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> Double): Double(source)
@JvmName(name = "sumOfInt")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> Int): Int(source)
@JvmName(name = "sumOfLong")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> Long): Long(source)

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

Since Kotlin

1.4
@JvmName(name = "sumOfBigDecimal")
inline fun <T> Array<out T>.sumOf(selector: (T) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun ByteArray.sumOf(selector: (Byte) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun ShortArray.sumOf(selector: (Short) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun IntArray.sumOf(selector: (Int) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun LongArray.sumOf(selector: (Long) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun FloatArray.sumOf(selector: (Float) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun DoubleArray.sumOf(selector: (Double) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun BooleanArray.sumOf(selector: (Boolean) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun CharArray.sumOf(selector: (Char) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigInteger")
inline fun <T> Array<out T>.sumOf(selector: (T) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun ByteArray.sumOf(selector: (Byte) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun ShortArray.sumOf(selector: (Short) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun IntArray.sumOf(selector: (Int) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun LongArray.sumOf(selector: (Long) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun FloatArray.sumOf(selector: (Float) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun DoubleArray.sumOf(selector: (Double) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun BooleanArray.sumOf(selector: (Boolean) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun CharArray.sumOf(selector: (Char) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigDecimal")
inline fun UIntArray.sumOf(selector: (UInt) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun ULongArray.sumOf(selector: (ULong) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun UByteArray.sumOf(selector: (UByte) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigDecimal")
inline fun UShortArray.sumOf(selector: (UShort) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigInteger")
inline fun UIntArray.sumOf(selector: (UInt) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun ULongArray.sumOf(selector: (ULong) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun UByteArray.sumOf(selector: (UByte) -> BigInteger): BigInteger(source)
@JvmName(name = "sumOfBigInteger")
inline fun UShortArray.sumOf(selector: (UShort) -> BigInteger): BigInteger(source)

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

Since Kotlin

1.4

@JvmName(name = "sumOfBigDecimal")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> BigDecimal): BigDecimal(source)
@JvmName(name = "sumOfBigInteger")
inline fun <T> Iterable<T>.sumOf(selector: (T) -> BigInteger): BigInteger(source)

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

Since Kotlin

1.4