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:3691 top

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

Comments top

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