ClojureDocs

导航

命名空间

intern

clojure.core

自 1.0 起可用 (source)
  • (intern ns name)
  • (intern ns name val)
Finds or creates a var named by the symbol name in the namespace
ns (which can be a symbol or a namespace), setting its root binding
to val if supplied. The namespace must exist. The var will adopt any
metadata from the name symbol.  Returns the var.