prelude

@prelude/set · v2.0.1

SourceAPI referenceChangelognpm

Set module

Usage

npm i -E @prelude/set
import * as Sets from '@prelude/set'
import * as Cmp from '@prelude/cmp'
// ...
Sets.equal(a, b)
Sets.difference(a, b)
Sets.union(a, b)
Sets.intersection(a, b)
Sets.sorted(a, Cmp.number) // sorted array
Sets.shuffled(a)

License

This package is dedicated to the public domain under CC0 1.0.