extensions/logics/iterable_extensions library

Extensions for Iterable operations and utilities.

These helpers apply to every Iterable — including List and Set — and are intentionally named to avoid colliding with the richer ListExtensions so they can be used together without ambiguity.

Example usage:

[1, 2, 3, 4].partition((n) => n.isEven); // ([2, 4], [1, 3])
['a', 'b'].zip([1, 2]); // [('a', 1), ('b', 2)]
[1, 2, 3].mapIndexed((i, v) => '$i:$v'); // ['0:1', '1:2', '2:3']

Extensions

IterableExtensions on Iterable<E>
Extensions for Iterable operations and utilities.
NestedIterableExtensions on Iterable<Iterable<E>>
Extensions for iterables of iterables.
NullableIterableExtensions on Iterable<E?>
Extensions for iterables that may contain null elements.