1.2.0 permalink Arrow_down_16x16
  • (chop s)
Removes the last character of string.

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/str_utils.clj:94 top

(defn chop
  "Removes the last character of string."
  [s]
  (subs s 0 (dec (count s))))
Vars in clojure.contrib.str-utils/chop: count dec defn subs
Used in 0 other vars

Comments top

No comments for chop. Log in to add a comment.