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 s)
is like (string->symbol s), but
the resulting symbol is a new uninterned symbol. Calling
string->uninterned-symbol twice for the same s returns two
distinct symbols.
- (gensym prefix) creates an
uninterned symbol with an automatically-generated name. The
prefix argument is an optional symbol or string.
PLT