minValueBy

inline fun <T, R : Comparable<R>> Iterable<T>.minValueBy(selector: (T) -> R): R?

Returns the smallest value of the given function or null if there are no elements.

Sources

Katlib source
Link copied to clipboard