RosettaCodeData/Task/Repeat-a-string/Lingo/repeat-a-string-1.lingo

8 lines
104 B
Text
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
on rep (str, n)
res = ""
repeat with i = 1 to n
put str after res
end repeat
return res
end