Skip to content
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 value val.
  • (sym? sym) returns true if sym is a symbol.
  • (sym-get sym) returns the value wrapped in the sym.