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

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;
});
784
likes
0
pub points
98%
popularity

Publisher

verified publishersandromaglione.com

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

Documentation

Documentation

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on fpdart