Skip to content
TurtleKitty edited this page May 12, 2019 · 3 revisions

gensym

Returns a generated symbol guaranteed to be unique. Often useful in operators to avoid unintended symbol capture.

It takes an optional argument that will be prepended to the symbol.

(gensym)                ; gensym-8133fc37-682c-40da-3666-173d20568239
(gensym "foonballardy") ; foonballardy-a9ba3668-4c9f-4c16-39d5-8a094958879d
Clone this wiki locally