Type Function Library string.* Return value String Revision Current Public Release (2018.3326) Keywords string, rep, replicate See also String
Replicates a string by returning a string that is the concatenation of n
copies of a specified String.
string.rep ( s, n ) s:rep( n ) |
String. The string to replicate.
Number. Amount of times to replicate the string.
print ( string.rep ( "Corona " , 5 ) ) --> Corona Corona Corona Corona Corona |