strrep

strrep(S: numero, N: numero)

Returns a string that is the concatenation of N copies of the string S.

Esempio 1. Esempio strrep

-- strrep: repeat string
local rep = strrep('ab', 3)
print("strrep('ab', 3) = '" .. rep .. "'")
assert(rep == 'ababab')