elegant library

Classes

Result<T, E>
An object that can contain either a successful result (of type T), or an error (of type E). Use the Result.ok and Result.error constructors to create these.
UnwrapException<E>

Functions

circularList<T>(List<T> items, {int step = 1}) Iterable<T>
groupBy<T>(Iterable<T> items, bool condition(T prev, T next)) Iterable<List<T>>
groups<T, X>(Iterable<T> items, int groupSize, X combine(List<T> e), {int step = 1}) Iterable<X>
pairs<T, X>(Iterable<T> items, X combine(T a, T b), {int step = 1}) Iterable<X>