Repeat the string the specified number of times.
Example:
assert (Strings.repeat ("ab", 3) == "ababab");
assert (Strings.repeat ("x", 0) == "");
| s |
the string to repeat. |
| count |
the number of times to repeat (must be >= 0). |
|
repeated string. |