maxBy
Returns the first character yielding the largest value of the given function.
Since Kotlin
1.7Throws
if the char sequence is empty.
Samples
samples.collections.Collections.Aggregates.maxByDeprecated
Warning since 1.4
Error since 1.5
Hidden since 1.6
Use maxByOrNull instead.
Replace with
this.maxByOrNull(selector)
Content copied to clipboard