user=> (take 2 (ns-interns `clojure.core)) ([sorted-map #'clojure.core/sorted-map] [read-line #'clojure.core/read-line]) user=> (take 5 (sort (keys (ns-interns `clojure.java.io)))) (Coercions IOFactory append? as-file as-relative-path) user=> (count (ns-interns `clojure.core)) ; only 621 functions to learn :-) 621 user=>
(defn ns-interns
"Returns a map of the intern mappings for the namespace."
{:added "1.0"
:static true}
[ns]
(let [ns (the-ns ns)]
(filter-key val (fn [^clojure.lang.Var v] (and (instance? clojure.lang.Var v)
(= ns (.ns v))))
(ns-map ns))))
Comments top
No comments for ns-interns. Log in to add a comment.