maxWith

fun <T> Sequence<T>.maxWith(comparator: Comparator<in T>): T?(source)

Deprecated

Use maxWithOrNull instead.

Replace with

this.maxWithOrNull(comparator)

Since Kotlin

1.0