previousIndex

abstract fun previousIndex(): Int(source)

Returns the char-based position of the previous Unicode code point in the iteration that would be returned by a subsequent call to previous, or -1 if the iteration has reached the beginning.

Since Kotlin

2.5