Repeat a string: Difference between revisions

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</lang>
 
Or use native string library function
string.rep(s,n)
 
</lang>
 
=={{header|MUMPS}}==
<lang MUMPS>
Anonymous user