iter library

Classes

ArrayChunksRIterator<T>
Returns an iterator over N elements of the iterator at a time. The chunks do not overlap. If N does not divide the length of the iterator, then the last up to N-1 elements will be omitted and can be retrieved from the .intoRemainder() function of the iterator.
CastRIterator<S, T>
ChainRIterator<T>
Takes two iterators and creates a new iterator over both in sequence.
CloneRIterator<T>
An iterator which is a "clone" of the original iterator. Iterating through the original or the clone will not affect the other. Note: Do not modify the original collection the original Iterable is based on while iterating. Explanation: Since Dart Iterators cannot be copied, CloneRIterator replaces the underlying iterator from the RIterator provided in the constructor with itself and collects any first calls to moveNext from any derived iterator. Due to this, modifications of the original iterable may have unintentional behavior on the cloned iterator. i.e. the first encounter of an object during iteration will be the one seen by the derived RIterator and all other subsequent CloneRIterators. Therefore if createing a CloneRIterator do not modify the original collection the passed in RIterator is based on.
CycleRIterator<T>
Creates an iterator which repeats the elements of the original iterator endlessly.
FlatMapRIterator<S, T>
Maps each element of the original iterator to an iterator, and then flattens the result into a single iterator.
PeekableRIterator<T>
An iterator which can use the "peek" to look at the next element of the iterator without consuming it.
RIterator<T>
RIterator is the union between an Iterator and an Iterable. Most iterator methods are consuming and should be assumed to be so unless otherwise stated.
ZipRIterator<T, U>
Zips to iterators into a single iterator of pairs.