namespace-munge

clojure.core

  • (namespace-munge ns)
Convert a Clojure namespace name to a legal Java package name.

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/core_deftype.clj:13 top

(defn namespace-munge
  "Convert a Clojure namespace name to a legal Java package name."
  {:added "1.2"}
  [ns]
  (.replace (str ns) \- \_))
Vars in clojure.core/namespace-munge:
Used in 0 other vars

Comments top

No comments for namespace-munge. Log in to add a comment.