Repeat a string: Difference between revisions

→‎{{header|Clojure}}: add Clojure example
(Added Perl 6.)
(→‎{{header|Clojure}}: add Clojure example)
Line 1:
{{task|String manipulation}}Take a string and repeat it some number of times. Example: repeat("ha", 5) => "hahahahaha"
 
=={{header|Clojure}}==
<lang clojure>(apply str (apply concat (repeat 5 "ha")))</lang>
 
=={{header|E}}==
Anonymous user