assoc-diff! ( assoc1 assoc2 -- assoc1 )
Factor handbook » The language » Collections » Associative mapping operations » Set-theoretic operations on assocs

Prev:assoc-union! ( assoc1 assoc2 -- assoc1 )


Vocabulary
assocs

Inputs
assoc1an assoc
assoc2an assoc


Outputs
assoc1an assoc


Word description
Removes all entries from assoc1 whose key is contained in assoc2.

Side effects
Modifies assoc1

Definition

: assoc-diff! ( assoc1 assoc2 -- assoc1 )
assoc-differ assoc-filter! ;