func_dart_core 0.6.2
func_dart_core: ^0.6.2 copied to clipboard
Functional Dart provides tools for writing functional code in Dart, emphasizing immutability, function composition, type safety, and avoiding the `dynamic` type.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add func_dart_core
With Flutter:
$ flutter pub add func_dart_core
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
func_dart_core: ^0.6.2
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:func_dart_core/boolean.dart';
import 'package:func_dart_core/bounded.dart';
import 'package:func_dart_core/double.dart';
import 'package:func_dart_core/either.dart';
import 'package:func_dart_core/eq.dart';
import 'package:func_dart_core/function.dart';
import 'package:func_dart_core/identity.dart';
import 'package:func_dart_core/integer.dart';
import 'package:func_dart_core/list.dart';
import 'package:func_dart_core/monoid.dart';
import 'package:func_dart_core/nonemptylist.dart';
import 'package:func_dart_core/option.dart';
import 'package:func_dart_core/ord.dart';
import 'package:func_dart_core/predicate.dart';
import 'package:func_dart_core/semigroup.dart';
import 'package:func_dart_core/string.dart';
import 'package:func_dart_core/task.dart';
import 'package:func_dart_core/taskeither.dart';