find-ns

functionsince v1.7.10 clojure.core/find-nsEdit
(find-ns ns)

Source docstring:
Returns the namespace named by the symbol or nil if it doesn't exist.
Bootstrap only.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn find-ns
  [ns]
  (when (nil? NS_CACHE)
    (set! NS_CACHE (atom {})))
  (let [the-ns (get @NS_CACHE ns)]
    (if-not (nil? the-ns)
      the-ns
      (let [ns-obj (find-ns-obj ns)]
        (when-not (nil? ns-obj)
          (let [new-ns (create-ns ns ns-obj)]
            (swap! NS_CACHE assoc ns new-ns)
            new-ns))))))