minBy

inline fun <T, R : Comparable<R>> Array<out T>.minBy(selector: (T) -> R): T?(source)
inline fun <R : Comparable<R>> ByteArray.minBy(selector: (Byte) -> R): Byte?(source)
inline fun <R : Comparable<R>> ShortArray.minBy(selector: (Short) -> R): Short?(source)
inline fun <R : Comparable<R>> IntArray.minBy(selector: (Int) -> R): Int?(source)
inline fun <R : Comparable<R>> LongArray.minBy(selector: (Long) -> R): Long?(source)
inline fun <R : Comparable<R>> FloatArray.minBy(selector: (Float) -> R): Float?(source)
inline fun <R : Comparable<R>> DoubleArray.minBy(selector: (Double) -> R): Double?(source)
inline fun <R : Comparable<R>> BooleanArray.minBy(selector: (Boolean) -> R): Boolean?(source)
inline fun <R : Comparable<R>> CharArray.minBy(selector: (Char) -> R): Char?(source)
inline fun <T, R : Comparable<R>> Iterable<T>.minBy(selector: (T) -> R): T?(source)
inline fun <K, V, R : Comparable<R>> Map<out K, V>.minBy(selector: (Map.Entry<K, V>) -> R): Map.Entry<K, V>?(source)

Deprecated

Use minByOrNull instead.

Replace with

this.minByOrNull(selector)

Since Kotlin

1.0