functional_collections 0.1.4 copy "functional_collections: ^0.1.4" to clipboard
functional_collections: ^0.1.4 copied to clipboard

outdated

Functional collections are immutable, adding or removing items efficiently creates a new collection. You can choose from: `FOption`, `FList`, `FSet`, `FMap`, `FTuple`.

example/main.dart

import 'package:functional_collections/functional_collections.dart';

void main() {
  1 > 2 ? FNone() : FSome(1);
  FList.from([1, 2, 3]).append(4).prepend(0);
  FSet.from([1, 2, 3]).add(4);
  FMap.from([FTuple2(1, "a"), FTuple2(2, "b")]).put(3, "c");
}
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Functional collections are immutable, adding or removing items efficiently creates a new collection. You can choose from: `FOption`, `FList`, `FSet`, `FMap`, `FTuple`.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on functional_collections