&

& (prefix suffix -- text)

Inputs

Outputs

This builtin is the text-concatenation operator. Both inputs must be known Text values at compile time, so the result is also a known Text value. Unknown Text values are rejected.

Known multi-line text is formed by combining & with LF.

Behavior

Example

{} 0 {} [
  "-- concat --" printCompilerMessage
  "pre" "fix" & printStack _:;

  "-- empty prefix --" printCompilerMessage
  "" "fix" & printStack _:;

  "-- empty suffix --" printCompilerMessage
  "pre" "" & printStack _:;

  0
] "main" exportFunction

Expected Output During Compilation

-- concat --
"prefix"
-- empty prefix --
"fix"
-- empty suffix --
"pre"

See also