Skip to content

union

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

Defined in: Data/Uniq.ts:201

Returns a new collection containing all items from both collections.

A

ReadonlySet<A>

(s) => ReadonlySet<A>

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