user> (ns-imports 'clojure.core)
{ClassVisitor clojure.asm.ClassVisitor, ProcessBuilder java.lang.ProcessBuilder, Enum java.lang.Enum, SuppressWarnings java.lang.SuppressWarnings, Throwable java.lang.Throwable, InterruptedException ...chop...}
(defn ns-imports
"Returns a map of the import mappings for the namespace."
{:added "1.0"
:static true}
[ns]
(filter-key val (partial instance? Class) (ns-map ns)))
Comments top
No comments for ns-imports. Log in to add a comment.