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))
And one more fun alternative using protocols:
(defprotocol Multiply (* [this n]))
Next the String class is extended:
(extend String Multiply {:* (fn [this n] (apply str (repeat n this)))})
So you can now 'conveniently' use:
(* "foo" 3)