Funzione
Nativa
string.rep
Returns a string that is the concatenation of <code>n</code> copies of the string <code>s</code> separated by the string <code>sep</code>.
Non ancora tradotto
Sintassi
string.rep(str, repetitions, separator)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
str
|
string | — | The string to convert. |
repetitions
|
number | — | Timer to repeat, this values gets rounded internally. |
separator
|
string | — | String that will separate the repeated piece. Notice that it doesn't add this string to the start or the end of the result, only between the repeated parts. |
Valore restituito
- string