@njlr/collect
v1.1.0
Published
Immutable data-structures. Currently just a wrapper on [HAMT+](https://github.com/mattbierner/hamt_plus).
Downloads
5
Readme
collect
Immutable data-structures. Currently just a wrapper on HAMT+.
Demo
const a = set.create();
a |> set.isEmpty; // true
const b = a
|> set.add('a')
|> set.add('b')
|> set.add('c');
a |> set.isEmpty; // still true
b |> set.isEmpty; // false
b |> set.has('a'); // false
b |> set.has('b'); // true
b |> set.has('c'); // true