maxOrNull

Returns the largest character or null if the char sequence is empty.

Since Kotlin

1.4

Samples