string.repeat
This function returns a new string consisting of <count> copies of the specified string.
Syntax
string.repeat(str, count)
Arguments
|
Argument |
Type |
Description |
|---|---|---|
|
str |
string |
String to be repeated |
|
count |
int |
Number that indicates how many times the string needs to be repeated |
Returns
|
Type |
Description |
|---|---|
|
string |
New string consisting of |
Examples
The function string.repeat("hello flogo", 2) returns hello flogo hello flogo.