${
Interpolating code results into literal values

Prev:$[


Vocabulary
literals

Syntax
${ code }


Word description
Outputs an array containing the results of executing code at parse time.

Notes
code's definition is looked up and called at parse time, so words that reference words in the current compilation unit cannot be used with ${.

Examples
USING: kernel literals math prettyprint ; IN: scratchpad CONSTANT: five 5 CONSTANT: six 6 ${ five six 7 } .
{ 5 6 7 }


See also
$, $[

Definition