>string ( seq -- str )
Factor handbook > The language > Collections > Strings

Prev:string? ( object -- ? )
Next:<string> ( n ch -- string )


Vocabulary
strings

Inputs and outputs
seqa sequence of characters
stra string


Word description
Outputs a freshly-allocated string with the same elements as a given sequence, by interpreting the sequence elements as Unicode code points.

Notes
This operation is only appropriate if the underlying sequence holds Unicode code points, which is rare unless it is a slice of another string. To convert a sequence of bytes to a string, use the words documented in Encoding and decoding strings.

Errors
Throws an error if the sequence contains elements other than integers.

Definition