AbstractIterator
A base class to simplify implementing iterators so that implementations only have to implement computeNext to implement the iterator, calling done when the iteration is complete.
Since Kotlin
1.1A base class to simplify implementing iterators so that implementations only have to implement computeNext to implement the iterator, calling done when the iteration is complete.
Since Kotlin
1.0Functions
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.
Sets the next value in the iteration, called from the computeNext function
Sets the next value in the iteration, called from the computeNext function
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.
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.