diff options
Diffstat (limited to 'docs/text.md')
| -rw-r--r-- | docs/text.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/text.md b/docs/text.md index ecf32240..96d0f7d4 100644 --- a/docs/text.md +++ b/docs/text.md @@ -1125,6 +1125,31 @@ replacement text. --- +## `reversed` + +**Description:** +Return a text that has the grapheme clusters in reverse order. + +**Signature:** +```tomo +func reversed(text: Text -> Text) +``` + +**Parameters:** + +- `text`: The text to reverse. + +**Returns:** +A reversed version of the text. + +**Example:** +```tomo +>> "Abc":reversed() += "cbA" +``` + +--- + ## `slice` **Description:** |
