minBy

inline fun <R : Comparable<R>> CharSequence.minBy(selector: (Char) -> R): Char?(source)

Deprecated

Use minByOrNull instead.

Replace with

this.minByOrNull(selector)

Since Kotlin

1.0