Handbook
Glossary
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
seq
a
sequence
assoc
an
assoc
Outputs
newseq
a
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
USING:
assocs.private
sequences
;
IN:
assocs
:
substitute
( seq assoc -- newseq )
substituter
map
;