sumByLong

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

Long version of Iterable.sumBy.

Return

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