maxValueBy

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

Deprecated

Deprecated since Kotlin 1.4, replace by maxOf

Replace with

maxOf

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