In Ruby, \"str\" * 3 will give you \"strstrstr\". In Clojure, the closest I can think of is (map (fn [n] \"str\") (range 3)) Is there a more idioma
\"str\" * 3
(map (fn [n] \"str\") (range 3))
You could also use the repeat function from clojure.contrib.string. If you add this to your namespace using require such as
(ns myns.core (:require [clojure.contrib.string :as str]))
then
(str/repeat 3 "hello")
will give you
"hellohellohello"