elegant library

Classes

AggregateStreamController<T>
Aggregates the output of multiple streams of the same type, and combines them into a single stream.
Err<T, E>
A failed Result containing error.
Ok<T, E>
A successful Result containing value.
Result<T, E>
The result of a computation that either succeeded with a T or failed with an E.

Extensions

AsType on Object
ElegantIterableExtension on Iterable<T>
ElegantListExtension on List<T>
ErrIterableExtension on Iterable<Err<T, E>>
Operations on an iterable of failed results.
OkIterableExtension on Iterable<Ok<T, E>>
Operations on an iterable of successful results.
ResultIterableExtension on Iterable<Result<T, E>>
Operations on an iterable of Results.

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>
mapBy<I, T>(Iterable<T> items, I key(T e)) → Map<I, List<T>>
pairs<T, X>(Iterable<T> items, X combine(T a, T b), {int step = 1}) → Iterable<X>

Exceptions / Errors

UnwrapErrorException<T>
Thrown when Result.unwrapError is called on an Ok.
UnwrapException<E>
Thrown when Result.unwrap is called on an Err.