Type Function Library string.* Return value String Revision Release 2024.3703 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