← Docs
kotlin-stdlib / kotlin.text / maxWithOrNull

maxWithOrNull

Common
JVM
JS
Native
1.4
fun CharSequence . maxWithOrNull (
comparator : Comparator < in Char >
) : Char ?

(source)

Returns the first character having the largest value according to the provided comparator or null if there are no characters.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .