IterableExt<E> extension

on

Properties

enumerate Iterable<(int, E)>

Available on Iterable<E>, provided by the IterableExt extension

Returns a new lazy Iterable whose elements are a Record containing the element and its index.
no setter

Methods

separate<To>({required To convert(E), required To separator, int groupSize = 1}) Iterable<To>

Available on Iterable<E>, provided by the IterableExt extension

Apply convert to each item and insert the separator between each <groupSize> items (not including the beginning and the end).
separateToList<To>({required To convert(E), required To separator, int groupSize = 1}) List<To>

Available on Iterable<E>, provided by the IterableExt extension

Shortcut for separate(..).toList().