Handbook
Glossary
replace-patterns ( object -- result )
Vocabulary
match
Inputs
object
an
object
Outputs
result
an
object
Word description
Copy the object, replacing each occurrence of a pattern matching variable with the actual value of that variable.
See also
match-cond
,
MATCH-VARS:
,
match-replace
Definition
IN:
match
GENERIC:
replace-patterns
( object -- result )
Methods
USING:
match
namespaces
;
M:
match-var
replace-patterns
get
;
USING:
kernel
match
;
M:
object
replace-patterns
;
USING:
match
sequences
;
M:
sequence
replace-patterns
[
replace-patterns
]
map
;
USING:
classes.tuple
kernel
match
;
M:
tuple
replace-patterns
tuple>array
replace-patterns
>tuple
;