repeat(s: utf8, n: i64) → utf8
Category: [strings](builtinsstrings)_
A string repeated n times (empty for n <= 0).
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| s | utf8 | The string to repeat. | — |
| n | i64 | How many copies to concatenate. | — |
| returns | utf8 | n copies of s. | — |
wcl
repeat("ab", 3) // concatenate 3 copies → "ababab"