store/[org.clojure/clojure "1.8.0"] clj::clojure.core/ns-map

Official Documentation

Add notes
Arities
==================================================
   [ns]

Docstring
==================================================
  Returns a map of all the mappings for the namespace.

Source

(defn ns-map
  "Returns a map of all the mappings for the namespace."
  {:added "1.0"
   :static true}
  [ns]
  (.getMappings (the-ns ns)))

Example 1

Edit
(ns-map 'clojure.core)
;; => {sorted-map #'clojure.core/sorted-map,
;;     read-line #'clojure.core/read-line,
;;     re-pattern #'clojure.core/re-pattern,
;;     keyword? #'clojure.core/keyword?,
;;     ClassVisitor clojure.asm.ClassVisitor,
;;     asm-type #'clojure.core/asm-type,
;;     val #'clojure.core/val,
;;     ...}

Example 2

Edit
;; See also http://clojure.org/namespaces for information on namespaces in Clojure and how to inspect and manipulate them

Example 3

Edit
;; ns-map = ns-refers + ns-interns + ns-imports
(count (ns-imports *ns*))
;; => 96

(count (ns-interns *ns*))
;; => 2

(count (ns-refers *ns*))
;; => 590

(+ *1 *2 *3)
;; => 688

(count (ns-map *ns*))
;; => 688

Uses on crossclj