@njlr/collect

1.1.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @njlr/collect

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

127 kB

Total Files

4

Last publish

Collaborators

  • njlr