Anonymous user
Repeat a string: Difference between revisions
→{{header|Lua}}
Line 345:
<lang logo>show cascade 5 [combine "ha ?] "|| ; hahahahaha</lang>
=={{header|Lua}}==
<lang lua>function repeats(s, n) return n > 0 and s .. repeat(s, n-1) or "" end
Or use native string library function
string.rep(s,n)
</lang>
=={{header|MUMPS}}==
<lang MUMPS>
|