KoneLinearIterator
Represents a KoneReversibleIterator over some collection of elements that has permanent order on the elements and permanent indices of the elements.
In such iterators, the next element is the next element in the order that has the next index among all indices of the elements.
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.
Gets the previous element, moves backward, and returns the got element.
Returns next element in the order or throws NoFollowingElementInIteratorException if there is no next element.
Returns previous element in the order or throws NoFollowingElementInIteratorException if there is no previous element.
Returns true iff there is previous element in the order.
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.
Moves backward bypassing previous element or throws NoFollowingElementInIteratorException if there is no previous element.
Returns index of the next element if it's present or throws NoFollowingElementInIteratorException if there is no next element.
Returns index of the previous element if it's present or throws NoFollowingElementInIteratorException if there is no previous 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.