> For the complete documentation index, see [llms.txt](https://docs.cheddar.vihan.org/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cheddar.vihan.org/docs/standard-library/string/reverse.md).

# Reverse

| type   | returns  |
| ------ | -------- |
| Getter | `string` |

## Explanation

Returns the reverse of a string. Handles unicode surrogates.

## Examples

```swift
"🐐🐑".rev == "🐑🐐"
"Hello! Hi!" == "!iH !olleH"
"Hi".rev == "iH"
"".rev == ""
```
