maxBy

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

Deprecated

Warning since 1.4

Error since 1.5

Hidden since 1.6

Use maxByOrNull instead.

Replace with

this.maxByOrNull(selector)

Since Kotlin

1.0