maxValueBy

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

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

Sources

Katlib source
Link copied to clipboard