diff options
Diffstat (limited to 'docs/text.md')
| -rw-r--r-- | docs/text.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/text.md b/docs/text.md index 7039043f..3849f840 100644 --- a/docs/text.md +++ b/docs/text.md @@ -895,6 +895,32 @@ The text formatted as a quoted string. --- +## `repeat` + +**Description:** +Repeat some text multiple times. + +**Usage:** +```tomo +repeat(text: Text, count:Int) -> Text +``` + +**Parameters:** + +- `text`: The text to repeat. +- `count`: The number of times to repeat it. (Negative numbers are equivalent to zero). + +**Returns:** +The text repeated the given number of times. + +**Example:** +```tomo +>> "Abc":repeat(3) += "AbcAbcAbc" +``` + +--- + ## `replace` **Description:** |
