fpdart 2.0.0-dev.1 copy "fpdart: ^2.0.0-dev.1" to clipboard
fpdart: ^2.0.0-dev.1 copied to clipboard

outdated

Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.

example/main.dart

import 'package:fpdart/fpdart.dart';

typedef Env = ({String url, int seed});
typedef Error = String;
typedef Success = int;

final either = Right<Error, Success>(10);
final option = Some(10);

final effect = Effect<Env, Error, Success>.gen(($) {
  final eitherValue = $.sync(either);
  final optionValue = $.sync(option);
  return eitherValue + optionValue;
});
1.12k
likes
0
points
212k
downloads

Documentation

Documentation

Publisher

verified publishersandromaglione.com

Weekly Downloads

Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta

More

Packages that depend on fpdart