RosettaCodeData/Task/Repeat-a-string/Wart/repeat-a-string.wart
2023-07-01 13:44:08 -04:00

7 lines
99 B
Text

def (s * n) :case (string? s)
with outstring
repeat n
pr s
("ha" * 5)
=> "hahahahaha"