1.2.0 permalink Arrow_down_16x16

maybe-keywordize

clojure.contrib.jmx

  • (maybe-keywordize s)
Convert a string key to a keyword, leaving other types alone. Used to
simplify keys in the tabular data API.

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/jmx/data.clj:38 top

(defn maybe-keywordize
  "Convert a string key to a keyword, leaving other types alone. Used to
   simplify keys in the tabular data API."
  [s]
  (if (string? s) (keyword s) s))
Vars in clojure.contrib.jmx/maybe-keywordize: defn keyword string?
Used in 0 other vars

Comments top

No comments for maybe-keywordize. Log in to add a comment.