intern

added
1.0

ns
clojure.core

type
function

(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.

                user=> (intern 'user 'x "Foobar")
#'user/x

user=> x
"Foobar"