getOrElse
Returns a character at the given index or the result of calling the defaultValue function if the index is out of bounds of this char sequence.
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Returns a character at the given index or the result of calling the defaultValue function if the index is out of bounds of this char sequence.