Skip to content

union

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

Defined in: Data/Uniq.ts:287

Returns a new collection containing all items from both collections.

A

ReadonlySet<A>

(s) => ReadonlySet<A>

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