stride library

Enables iterating Dart lists and iterables using a custom step size and start index.

Classes

ReverseStrideIterator<E>
Iterates an Iterable using a negative non-zero step size and a custom start index.
ReverseUncheckedStrideIterator<E>
Iterates an Iterable using a negative non-zero step size and a custom start index.
StrideIterator<E>
Iterates an Iterable using a positive non-zero step size and a custom start index.
UncheckedStrideIterator<E>
Iterates a fixed length List using a positive non-zero step size and a custom start index.

Extensions

FastStride on List<E>
Extension on List<E> providing the method fastStride. Note: The backing list should be immutable or fixed length since concurrent modification is not checked.
Stride on Iterable<E>
Extension on Iterable<E> providing the method stride.