nextIndex

abstract fun nextIndex(): Int(source)

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

Returns collection size if the iteration is at the end of the collection.

Since Kotlin

1.0
abstract fun nextIndex(): Int(source)

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

Returns collection size if the iteration is at the end of the collection.

Since Kotlin

1.1
abstract fun nextIndex(): Int(source)

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

Returns collection size if the iteration is at the end of the collection.

Since Kotlin

1.3
abstract fun nextIndex(): Int(source)

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

Returns collection size if the iteration is at the end of the collection.

Since Kotlin

1.8
abstract fun nextIndex(): Int(source)

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

Returns collection size if the iteration is at the end of the collection.

Since Kotlin

1.8