1 USING: help.markup help.syntax io math strings ;
5 { $values { "str" string } }
6 { $description "String interpolation using named variables and/or stack arguments, writing to the " { $link output-stream } "." }
7 { $notes "Stack arguments are numbered from the top of the stack." }
10 "USING: interpolate ;"
11 "\"Bob\" \"Alice\" \"Hi ${1}, it's ${0}.\" interpolate"
15 "USING: interpolate namespaces ;"
16 "\"Fred\" \"name\" [ \"Hi ${name}\" interpolate ] with-variable"
21 HELP: interpolate>string
22 { $values { "str" string } { "newstr" string } }
23 { $description "String interpolation using named variables and/or stack arguments, captured as a " { $link string } "." }
24 { $notes "Stack arguments are numbered from the top of the stack." } ;
26 { interpolate interpolate>string } related-words