![[index]](../icons/index.gif)
Next: Vectors
Up: Basic Data Extensions
Previous: Strings
MzScheme provides two ways of generating an uninterned symbol, i.e., a symbol that is not eq?, eqv?, or
equal? to any other symbol:
- (string->uninterned-symbol string) is like
(string->symbol string), but the resulting
symbol is a new uninterned symbol. Calling
string->uninterned-symbol twice for the same s returns
two distinct symbols.
- (gensym [symbol/string]) creates an uninterned symbol with
an automatically-generated name. The optional symbol/string
argument is a prefix symbol or string.
PLT