minValueBy

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

Deprecated

Deprecated since Kotlin 1.4, replace by minOfOrNull

Replace with

minOfOrNull

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