pastel library

Support for doing something awesome.

More dartdocs go here.

Functions

catchException<O>(O f()) Result<O>
comprehensive<T>(Iterable<T> iterable, bool test(T)) Iterable<T>
cond<T, R>(List<(bool Function(T), R Function(T))> cases, R otherwise(T)) → R Function(T)
generator<T>(T f(int, T), T initial) Iterable<(int, T)>
match<T, R>(bool criteria(T), R whenTrue(T), R whenFalse(T)) → R Function(T)
numbers(int start, int end, {int step = 1}) Iterable<int>
when<T, R>(List<(T, R Function(T))> cases, R otherwise(T)) → R Function(T)