sumByLong

inline fun <T> Iterable<T>.sumByLong(selector: (T) -> Long): Long(source)

Deprecated

Since Kotlin 1.4.0, use sumOf

Replace with

sumOf

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


inline fun <T> Sequence<T>.sumByLong(selector: (T) -> Long): Long(source)

Deprecated

Since Kotlin 1.4.0, use sumOf

Replace with

sumOf

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

The operation is terminal.