substitute ( seq assoc -- newseq )
Factor handbook » The language » Collections » Associative mapping operations » Set-theoretic operations on assocs

Prev:assoc-diff ( assoc1 assoc2 -- diff )
Next:extract-keys ( seq assoc -- subassoc )


Vocabulary
assocs

Inputs
seqa sequence
assocan assoc


Outputs
newseqa sequence


Word description
Creates a new sequence where elements of seq which appear as keys in assoc are replaced by the corresponding values, and all other elements are unchanged.

Definition