functional_collections 0.1.8 functional_collections: ^0.1.8 copied to clipboard
Functional collections are immutable, adding or removing items efficiently creates a new collection. You can choose from: `FOption`, `FList`, `FSet`, `FMap`, `FTuple`.
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");
}