Handbook
Glossary
assoc-union ( assoc1 assoc2 -- union )
Factor handbook
»
The language
»
Collections
»
Associative mapping operations
»
Set-theoretic operations on assocs
Prev:
assoc-intersect ( assoc1 assoc2 -- intersection )
Next:
assoc-diff ( assoc1 assoc2 -- diff )
Vocabulary
assocs
Inputs
assoc1
an
assoc
assoc2
an
assoc
Outputs
union
a new assoc
Word description
Outputs a assoc consisting of all entries from
assoc1
and
assoc2
, with entries from
assoc2
taking precedence in case the corresponding values are not equal.
Definition
USING:
kernel
;
IN:
assocs
:
assoc-union
( assoc1 assoc2 -- union )
over
assoc-union-as
;