Iterator (original) (raw)
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
Since Kotlin
1.0
Inheritors
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
Since Kotlin
1.1
Inheritors
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
Since Kotlin
1.0
Inheritors
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
Since Kotlin
1.3
Inheritors
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
Since Kotlin
1.8
Inheritors
An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.
Since Kotlin
1.8
Inheritors
Functions
Creates a sequence that returns all elements from this iterator. The sequence is constrained to be iterated only once.
Returns true
if the iteration has more elements.
Returns true
if the iteration has more elements.
Returns true
if the iteration has more elements.
Returns true
if the iteration has more elements.
Returns true
if the iteration has more elements.
Returns true
if the iteration has more elements.
Returns the given iterator itself. This allows to use an instance of iterator in a for
loop.
expect abstract operator fun next(): T
Returns the next element in the iteration.
actual abstract operator fun next(): T
Returns the next element in the iteration.
actual abstract operator fun next(): T
Returns the next element in the iteration.
actual abstract operator fun next(): T
Returns the next element in the iteration.
actual abstract operator fun next(): T
Returns the next element in the iteration.
actual abstract operator fun next(): T
Returns the next element in the iteration.
Returns an Iterator that wraps each element produced by the original iterator into an IndexedValue containing the index of that element and the element itself.