sum Of
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
Returns the sum of all values produced by selector function applied to each element in the sequence.
The operation is terminal.
Since Kotlin
1.5
inline fun <T> Sequence<T>.sumOf(selector: (T) -> BigDecimal): BigDecimal
Content copied to clipboard
inline fun <T> Sequence<T>.sumOf(selector: (T) -> BigInteger): BigInteger
Content copied to clipboard
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