sumOf

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

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

The operation is terminal.