Handbook
Glossary
union! ( set1 set2 -- set1 )
Factor handbook
»
The language
»
Collections
»
Sets
»
Operations on sets
Prev:
clear-set ( set -- )
Next:
diff! ( set1 set2 -- set1 )
Vocabulary
sets
Inputs
set1
a
set
set2
a
set
Outputs
set1
a
set
Word description
Adds all members from
set2
to
set1
.
Side effects
Modifies
set1
Definition
USING:
kernel
sets.private
;
IN:
sets
:
union!
( set1 set2 -- set1 )
?members
over
adjoin-all
;