crow/symbol.crow
(source)
symbol
builtin
==
bool
(a
symbol
, b
symbol
) bare
<=>
comparison
(a
symbol
, b
symbol
)
Same as a.to::string <=> b.to::string
.
to
string
(a
symbol
)
to
symbol
(a
string
)
Interns a string.
This is O(log n), where 'n' is the number of unique symbols that exist.