Returns the namespace named by ns-sym or throws if the
namespace does not exist
(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))
Comments top
No comments for get-ns. Log in to add a comment.