Skip to content

strrev Function ​

strrev reverses the characters in a string. Note that the characters are treated as Unicode characters (in technical terms, Unicode grapheme cluster boundaries are respected).

hcl
strrev(string)

Examples ​

shellsession
> strrev("hello")
olleh
> strrev("a ☃")
☃ a

Released under the MPL-2.0 License.