collection library

Utilities for collection types and Iterables.

Extensions

FutureMap on Map<K, Future<V>>
Provides a wait extension property on a Map with Future values.
InPlaceOperations on List<E>
Extension methods on List that do work in-place.
IterableUtils on Iterable<E>
Miscellaneous utility methods for Iterable.
SortMap on LinkedHashMap<K, V>
Provides a sort extension method on LinkedHashMap.
SortWithKeyExtension on List<E>
Provides a sortWithKey extension method on List.

Functions

flattenDeep<T>(Iterable<Object?> list) Iterable<T>
Recursively flattens all nested Iterables into a single Iterable sequence.
mergeMaps<K, V>(Iterable<Map<K, V>> maps) Map<K, List<V>>
Combines an Iterable of Maps into a single Map with Lists of the corresponding values.
zipLongest<E>(Iterable<Iterable<E>> iterables, E fillValue) Iterable<List<E>>
Like `zip` or `IterableZip` except that zip_longest stops only after the longest Iterable is exhausted instead of the shortest.

Exceptions / Errors

ParallelMapWaitError<K, V>
An error thrown when FutureMap.wait fails.