fn_compose 0.1.0 fn_compose: ^0.1.0 copied to clipboard
A typed way to compose functions in dart, this is works well when getting generic functional composition but it is born from my interest in trying to understand type safety, functional composition, da [...]
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add fn_compose
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
fn_compose: ^0.1.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:fn_compose/compose.dart';
import 'package:fn_compose/composefn.dart';