Skip to content

with gensyms

Turtle Kitty edited this page Aug 9, 2015 · 2 revisions

with-gensyms

Useful in macros, this operator creates a set of gensyms and assigns them to the given symbols.

(with-gensyms (x y z)
    (list x y z))

-> (gensym-c0728893-b107-4e18-3b0a-55c812a61a9d
    gensym-6a492d35-9460-4388-349f-9ec10ec7f70c
    gensym-eb17efa4-8fa9-4231-b7a8-194392f0271f)
Clone this wiki locally