>> s: make string! 100 == ""
string! value is a sequence of Unicode code points, or char! values.
String! is a member of the following typesets:
String! values can be created using literal syntax, or at runtime by using a
make constructor or
>> to string! 'foo == "foo" >> to string! [bar] == "bar" >> to string! 42 == "42"
mold can also be used to convert a value to a user-friendly string or a source format string, respectively.
>> form 'foo == "foo"
>> mold 'bar == "bar"
Attempting to convert
3. Literal syntax
Zero or more characters enclosed in quotation marks.
Zero or more characters enclosed in opening and closing braces.
A single-line string cannot contain unescaped new-line characters.
>> cr == #"^M" >> lf == #"^/" >> crlf == "^M^/"
A multi-line string can contain new-line characters, quotation marks, and paired braces. Unpaired braces must be escaped by preceding the character with
All comparators can be applied on
=, ==, <>, >, <, >=, <=, =?. In addition,
max are also supported.
5. Testing values
string? to check if a value is of the
>> string? "foo" == true
type? to return the datatype of a given value.
>> type? "foo" == string!
6. Predefined words