sumByFloat

inline fun <T> Iterable<T>.sumByFloat(selector: (T) -> Float): Float

Sum collection by float as this is missing in the stdlib even after version 1.4.0.

Not naming it sumOf in order to have easier imports.

Sources

Link copied to clipboard