KoneSequence
Represents a sequence of elements that can be accessed via its iterator.
Usually the sequences are lazily evaluated and evaluated values are not cached. So you should think of them as a formal instance that can produce some values one-by-one. Also, there is no saying if it is finite or not.
Standard examples are either lazily evaluated finite sequence of elements like lazy mapping or filtering of an iterable or fixed infinite sequences (which, obviously, cannot be evaluated and stored anywhere in a fixed time) like Fibonacci numbers.
If you need to cache your values, so that the sequence won't be "reevaluated" again, there is KoneSequence.cached.
Type Parameters
The type of elements in the sequence.
Functions
Returns a cached (memorized) version of this sequence.
Returns an iterator over the elements of this sequence.
inline fun <E, R> KoneSequence<E>.maxIndexListBy(selector: (E) -> R): KoneUIntArray
inline fun <E, R> KoneSequence<E>.minIndexListBy(selector: (E) -> R): KoneUIntArray
Converts this sequence to a KoneList.
Converts this sequence to a KoneMutableList.
Converts this sequence to a KoneMutableNoddedList.
Converts this sequence to a KoneNoddedList.
Converts this sequence to a KoneSettableList.
Converts this sequence to a KoneSettableNoddedList.