This website requires JavaScript.
Explore
Help
Register
Sign in
aparler
/
RosettaCodeData
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
12
Pull requests
3
Projects
Releases
Packages
Wiki
Activity
Actions
master
RosettaCodeData
/
Task
/
Repeat-a-string
/
Lua
/
repeat-a-string-1.lua
2 lines
71 B
Lua
Raw
Permalink
Normal View
History
Unescape
Escape
Another update from ingydotnet^djgoku
2015-11-18 06:14:39 +00:00
function
repeats
(
s
,
n
)
return
n
>
0
and
s
..
repeats
(
s
,
n
-
1
)
or
"
"
end
Reference in a new issue
Copy permalink