Handbook
Glossary
string>symbol ( str/seq -- alien )
Vocabulary
alien
.
strings
Inputs
str/seq
a
string
or a
sequence
Outputs
alien
an
alien
Word description
Converts the string to a format which is a valid symbol name for the Factor VM's compiled code linker. By performing this conversion ahead of time, the image loader can run without allocating memory.
On all platforms, symbols are ASCII strings.
Definition
IN:
alien.strings
GENERIC:
string>symbol
( str/seq -- alien )
Methods
USING:
alien.strings
io.encodings.utf8
sequences
;
M:
sequence
string>symbol
[
utf8
string>alien
]
map
;
USING:
alien.strings
io.encodings.utf8
strings
;
M:
string
string>symbol
utf8
string>alien
;