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

ns-imports

clojure.core

  • (ns-imports ns)
Returns a map of the import mappings for the namespace.

1 Example top

  • 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...}
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:3242 top

(defn ns-imports
  "Returns a map of the import mappings for the namespace."
  {:added "1.0"}
  [ns]
  (filter-key val (partial instance? Class) (ns-map ns)))
Vars in clojure.core/ns-imports: defn instance? ns ns-map partial val
Used in 2 other vars class-symbol potential-dot

Comments top

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