• (ns-path ns)
Returns the path form of a given namespace

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 swank/util/clojure.clj:11 top

(defn ns-path
  "Returns the path form of a given namespace"
  ([#^clojure.lang.Namespace ns]
     (let [#^String ns-str (name (ns-name ns))]
       (-> ns-str
           (.substring 0 (.lastIndexOf ns-str "."))
           (.replace \- \_)
           (.replace \. \/)))))
Vars in swank.util.clojure/ns-path: -> defn let
Used in 0 other vars

Comments top

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