LF (-- lineFeed)
Inputs
- None.
Outputs
LF is convenient when building known multi-line Text objects from smaller pieces.
Example
{} 0 {} [
"-- build multi-line text --" printCompilerMessage
"A" LF & "B" & printStack _:;
"-- same as \"\\n\" --" printCompilerMessage
LF "\n" = printStack _:;
0
] "main" exportFunction
Expected Output During Compilation
-- build multi-line text --
"A
B"
-- same as "\n" --
TRUE
See also
&builtin(prefix suffix -- text)Concatenates two known Text objects.attributebuiltin(attribute --)Consumes one known Text attribute string and produces nothing.textSizebuiltin(text -- size)Returns the UTF-8 code-unit (byte) count of a Text object as known or unknown Natx; knownNILtext is invalid.textSplitbuiltin(text -- characterList)Splits known Text by decoded UTF-8 characters into one-character Text items. Empty text yields the empty Tuple().