kotlin-stdlib / kotlin.text / maxOrNull maxOrNull Common JVM JS Native 1.4 fun CharSequence.maxOrNull(): Char?(source) Returns the largest character or null if there are no characters.