plfp 1.0.0 copy "plfp: ^1.0.0" to clipboard
plfp: ^1.0.0 copied to clipboard

Functional programming and some other utils

A utils package containing some functional programming utils.

TODOs #

  • add tests
  • add 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 to Either<L, R>, but has left being assigned to value and right assigned to error. This is similar to the Result in rust, but diffferent from the convention in dartz;
  • ServiceStore: a service locator similar to the one GetIt or Get;

Getting started #

Just add this to the pubspec and then use the things.

Usage #

const like = 'sample';

Additional information #

0
likes
150
pub points
0%
popularity

Publisher

unverified uploader

Functional programming and some other utils

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on plfp