-
Notifications
You must be signed in to change notification settings - Fork 0
module std.sym
Jan Špaček edited this page Apr 12, 2016
·
1 revision
Symbols are objects that can be used as unique markers (for example, to tag
objects of the same type with a distinguished label). Symbols contain a value
that can be accessed and is mostly useful to identify symbols when they are
printed. Otherwise, the only useful operation is equality testing with eqv?
or
equal?
.
-
(sym-new val)
creates a new symbol wrapping the valueval
. -
(sym? sym)
returns true ifsym
is a symbol. -
(sym-get sym)
returns the value wrapped in thesym
.