Vocabulary
sets

Inputs
set1a set
set2a set


Outputs
seta set


Word description
Outputs a set consisting of elements present in either set1 or set2 which does not contain duplicate values.

This word has a default definition which works for all sets, but set implementations may override the default for efficiency.

Examples
USING: sets prettyprint ; { 1 2 3 } { 2 3 4 } union .
{ 1 2 3 4 }


See also
diff, intersect

Definition

GENERIC: union ( set1 set2 -- set )


Methods