Skip to content

difference

difference<A>(other): (s) => ReadonlySet<A>

Defined in: Utils/Uniq.ts:233

Returns a new collection containing only the items from set that do not appear in other.

A

ReadonlySet<A>

(s): ReadonlySet<A>

ReadonlySet<A>

ReadonlySet<A>

pipe(Uniq.fromArray([1, 2, 3, 4]), Uniq.difference(Uniq.fromArray([2, 4])));
// ReadonlySet { 1, 3 }