You're viewing version 1.2.0 of ns-name. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16

ns-name

clojure.core

  • (ns-name ns)
Returns the name of the namespace, a symbol.

1 Example top

  • ;; get the namespace name as string
    user=> (ns-name (the-ns 'user))
    user
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:3210 top

(defn ns-name
  "Returns the name of the namespace, a symbol."
  {:added "1.0"}
  [ns]
  (.getName (the-ns ns)))
Vars in clojure.core/ns-name: defn ns the-ns

Comments top

No comments for ns-name. Log in to add a comment.