REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 17-Aug-2010 Edit History |
Converts a value to a string.
Arguments:
value [any-type!] - The value to form
See also:
The form function converts a value to a human readable string. It is commonly used by print for output.
form 1234
"1234"
form 10:30
"10:30"
form %image.jpg
"image.jpg"
When given a block of values, spaces are inserted between each values (except after a newline).
form [1 2 3]
"1 2 3"
To avoid the spaces between values use ajoin, join, or rejoin.
The reform function combines reduce with form to evaluate values:
reform [1 + 2 3 + 4]
"3 7"
To produce REBOL-readable output, use the mold function.
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |