iterable library

Some fancy iterables and iterators.

Classes

Group<K, V>
A group of values.
Indexed<E>
An indexed value.

Enums

Period
Different kinds of repeating periodic timestamps.

Functions

iterate<E>(E value, E callback(E element)) Iterable<E>
Returns a lazy infinite list of repeated applications of the function to the initial value.
repeat<E>(E element, {int? count}) Iterable<E>
Returns an infinite iterable with a constant element. If count is provided the resulting iterator is limited to count elements.