clojure.core/namespace¶
Returns the namespace String of a symbol or keyword, or nil if not present.
Examples¶
Note by merriam¶
Note this does not try to be "smart"
user=>(namespace 'no-such-name/no-such-var)
"no-such-name"
user=>(def a-var)
#'user-a-var
user=>(namespace 'a-var)
nil
See also¶
- clojure.core/ns (3)
- clojure.core/name (4)
- clojure.core/def (4)
Content from the matching ClojureDocs page, with authors credited on each contribution.