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
assoc1an assoc
assoc2an assoc


Outputs
uniona 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