Anonymous user
Repeat a string: Difference between revisions
added haskell
(added perl, php, python) |
(added haskell) |
||
Line 1:
{{task|String manipulation}}Take a string and repeat it some number of times. Example: repeat("ha", 5) => "hahahahaha"
=={{header|Haskell}}==
<lang haskell>concat $ replicate 5 "ha"</lang>
=={{header|Java}}==
{{works with|Java|1.5+}}
|