1.2.0 permalink Arrow_down_16x16

replace-char

clojure.contrib.string

  • (replace-char a b s)
Replaces all instances of character a with character b in s.

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/string.clj:157 top

(defn replace-char
  "Replaces all instances of character a with character b in s."
  {:deprecated "1.2"}
  [^Character a ^Character b ^String s]
  (.replace s a b))
Vars in clojure.contrib.string/replace-char: defn
Used in 0 other vars

Comments top

No comments for replace-char. Log in to add a comment.