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

Prev:assoc-union ( assoc1 assoc2 -- union )
Next:substitute ( seq assoc -- newseq )


Vocabulary
assocs

Inputs
assoc1an assoc
assoc2an assoc


Outputs
diffa new assoc


Word description
Outputs an assoc consisting of all entries from assoc1 whose key is not contained in assoc2.

Definition

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