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;
});
939
likes
0
points
237k
downloads

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

Documentation

Documentation

License

unknown (license)

Dependencies

meta

More

Packages that depend on fpdart