RosettaCodeData/Task/Repeat-a-string/Wart/repeat-a-string.wart

8 lines
99 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
def (s * n) :case (string? s)
with outstring
repeat n
pr s
("ha" * 5)
=> "hahahahaha"