Repeat a string: Difference between revisions

Content added Content deleted
(Added Perl 6.)
(→‎{{header|Clojure}}: add Clojure example)
Line 1: Line 1:
{{task|String manipulation}}Take a string and repeat it some number of times. Example: repeat("ha", 5) => "hahahahaha"
{{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}}==
=={{header|E}}==