1.2.0 permalink Arrow_down_16x16
  • (get-ns ns-sym)
Returns the namespace named by ns-sym or throws if the
namespace does not exist

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/ns_utils.clj:42 top

(defn get-ns
  "Returns the namespace named by ns-sym or throws if the
  namespace does not exist"
  [ns-sym]
  (let [ns (find-ns ns-sym)]
    (throw-if (not ns) "Unable to find namespace: %s" ns-sym)
    ns))
Vars in clojure.contrib.ns-utils/get-ns: defn let not ns
Used in 0 other vars

Comments top

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