functionally 0.0.1-dev.7 functionally: ^0.0.1-dev.7 copied to clipboard
A library designed to help develop code in a more FP oriented way.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add functionally
With Flutter:
$ flutter pub add functionally
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
functionally: ^0.0.1-dev.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:functionally/builders.dart';
import 'package:functionally/common.dart';
import 'package:functionally/either.dart';
import 'package:functionally/io.dart';
import 'package:functionally/option.dart';
import 'package:functionally/reader.dart';
import 'package:functionally/reader_io.dart';
import 'package:functionally/reader_stream.dart';
import 'package:functionally/reader_task.dart';
import 'package:functionally/stream.dart';
import 'package:functionally/stream_either.dart';
import 'package:functionally/stream_option.dart';
import 'package:functionally/task.dart';
import 'package:functionally/task_either.dart';
import 'package:functionally/task_option.dart';