previousIndex

abstract fun previousIndex(): Int(source)

Returns the index of the element that would be returned by a subsequent call to previous.

Returns -1 if the iteration is at the beginning of the collection.

Since Kotlin

1.0
abstract fun previousIndex(): Int(source)

Returns the index of the element that would be returned by a subsequent call to previous.

Returns -1 if the iteration is at the beginning of the collection.

Since Kotlin

1.1
abstract fun previousIndex(): Int(source)

Returns the index of the element that would be returned by a subsequent call to previous.

Returns -1 if the iteration is at the beginning of the collection.

Since Kotlin

1.3
abstract fun previousIndex(): Int(source)

Returns the index of the element that would be returned by a subsequent call to previous.

Returns -1 if the iteration is at the beginning of the collection.

Since Kotlin

1.8
abstract fun previousIndex(): Int(source)

Returns the index of the element that would be returned by a subsequent call to previous.

Returns -1 if the iteration is at the beginning of the collection.

Since Kotlin

1.8