List Iterator
An iterator over a collection that supports indexed access.
Since Kotlin
1.2An iterator over a collection that supports indexed access.
Since Kotlin
1.0An iterator over a collection that supports indexed access.
Since Kotlin
1.1An iterator over a collection that supports indexed access.
Since Kotlin
1.3See also
Functions
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 there are elements in the iteration before the current element.
Returns true if there are elements in the iteration before the current element.
Returns true if there are elements in the iteration before the current element.
Returns true if there are elements in the iteration before the current element.
Returns the index of the element that would be returned by a subsequent call to next.
Returns the index of the element that would be returned by a subsequent call to next.
Returns the index of the element that would be returned by a subsequent call to next.
Returns the previous element in the iteration and moves the cursor position backwards.
Returns the previous element in the iteration and moves the cursor position backwards.
Returns the previous element in the iteration and moves the cursor position backwards.
Returns the index of the element that would be returned by a subsequent call to previous.
Returns the index of the element that would be returned by a subsequent call to previous.
Returns the index of the element that would be returned by a subsequent call to previous.
Returns the index of the element that would be returned by a subsequent call to previous.
Inheritors
Extensions
Creates a sequence that returns all elements from this iterator. The sequence is constrained to be iterated only once.
Returns the given iterator itself. This allows to use an instance of iterator in a for loop.
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.