A utils package containing some functional programming utils.
TODOs
add testsadd docs
Features
Either<L, R>: a value that can be either left or right;Lazy<T>: a lazily evaluated value;Optional<T>: an optional value;Result<V, E>: the result value, similar toEither<L, R>, but has left being assigned to value and right assigned to error. This is similar to theResultin rust, but diffferent from the convention indartz;ServiceStore: a service locator similar to the oneGetItorGet;
Getting started
Just add this to the pubspec and then use the things.
Usage
const like = 'sample';
Additional information
Libraries
- plfp
- Support for doing something awesome.