ClojureDocs

Nav

Namespaces

intern

clojure.core

Available since 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.