Convert to a word

toword expression

Converts the result of expression to its string representation. The resulting word is equal to the text output produced with the instruction: print expression.

Example:

print {1 2 3}
make "a toword {1 2 3}
(print :a count :a word? :a)

print word? toword this
print word? this

Output:

{1 2 3}
{1 2 3} 7 True
True
False

See also:

Word, number, logical value

Table of Content