sumOf

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

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

The operation is terminal.

Since Kotlin

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

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

The operation is terminal.

Since Kotlin

1.4