• (repeat n s)
Returns a new String containing s repeated n times.

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:140 top

(defn ^String repeat
  "Returns a new String containing s repeated n times."
  [n ^String s]
  (apply str (clojure.core/repeat n s)))
Vars in clojure.contrib.string/repeat: apply defn repeat str
Used in 0 other vars

Comments top

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