KoneIterator
Represents an iterator over some elements (maybe even infinite number of elements) in some (maybe temporary) order.
In each moment it has a cursor pointing either between two elements, before the first one, or after the last one. If there are no elements in the collection, the cursor just points nowhere. All operations are made either before or after the cursor with previous or next element correspondingly.
Type Parameters
The type of elements returned by the iterator.
Inheritors
Functions
Converts this KoneIterator to a KoneSequence by wrapping it.
Gets the next element in this iterator, moves forward, and returns the got element.
Returns next element in the order or throws NoFollowingElementInIteratorException if there is no next element.
inline fun <E, R> KoneIterator<E>.maxIndexListBy(selector: (E) -> R): KoneUIntArray
inline fun <E, R> KoneIterator<E>.minIndexListBy(selector: (E) -> R): KoneUIntArray
Moves forward bypassing next element or throws NoFollowingElementInIteratorException if there is no next element.
Converts this iterator to a KoneList.
Converts this iterator to a KoneMutableList.
Converts this iterator to a KoneMutableNoddedList.
Converts this iterator to a KoneNoddedList.
Converts this iterator to a KoneSettableList.
Converts this iterator to a KoneSettableNoddedList.