For the complete documentation index, see llms.txt. This page is also available as Markdown.

Reverse

type

returns

Getter

string

Explanation

Returns the reverse of a string. Handles unicode surrogates.

Examples

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

Last updated

Was this helpful?