ClojureDocs

导航

命名空间

gensym

clojure.core

1.0 及更高版本可用 (源代码)
  • (gensym)
  • (gensym prefix-string)
Returns a new symbol with a unique name. If a prefix string is
supplied, the name is prefix# where # is some unique number. If
prefix is not supplied, the prefix is 'G__'.