Repeat a string: Difference between revisions

Don't invalidate the bulk of other entries by making additional goal discretionary.
(add repeating single characters)
(Don't invalidate the bulk of other entries by making additional goal discretionary.)
Line 1:
{{task|String manipulation}}Take a string and repeat it some number of times. Example: repeat("ha", 5) => "hahahahaha"
 
If there is a simpler/more efficient way to repeat a single “character”, you might want to show that as well (i.e. repeat-char("*", 5) => "*****").
 
=={{header|Ada}}==
Anonymous user