sumByDouble

inline fun <T> Array<out T>.sumByDouble(selector: (T) -> Double): Double(source)
inline fun ByteArray.sumByDouble(selector: (Byte) -> Double): Double(source)
inline fun ShortArray.sumByDouble(selector: (Short) -> Double): Double(source)
inline fun IntArray.sumByDouble(selector: (Int) -> Double): Double(source)
inline fun LongArray.sumByDouble(selector: (Long) -> Double): Double(source)
inline fun FloatArray.sumByDouble(selector: (Float) -> Double): Double(source)
inline fun DoubleArray.sumByDouble(selector: (Double) -> Double): Double(source)
inline fun BooleanArray.sumByDouble(selector: (Boolean) -> Double): Double(source)
inline fun CharArray.sumByDouble(selector: (Char) -> Double): Double(source)

Deprecated

Use sumOf instead.

Replace with

this.sumOf(selector)

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

Since Kotlin

1.0

inline fun <T> Iterable<T>.sumByDouble(selector: (T) -> Double): Double(source)

Deprecated

Use sumOf instead.

Replace with

this.sumOf(selector)

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

Since Kotlin

1.0