maxWith

fun CharSequence.maxWith(comparator: Comparator<in Char>): Char?(source)

Deprecated

Use maxWithOrNull instead.

Replace with

this.maxWithOrNull(comparator)

Since Kotlin

1.0