minBy

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

Deprecated

Use minByOrNull instead.

Replace with

this.minByOrNull(selector)

Since Kotlin

1.0