← Docs
kotlin-stdlib / kotlin.collections / ListIterator / nextIndex

nextIndex

Common
JVM
JS
Native
1.0
abstract fun nextIndex ( ) : Int
(Common source) (Native 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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .