tock / ai.tock.shared / kotlin.collections.Iterable / sumByLong

sumByLong

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

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