Back to Opentofu

`strrev` Function

website/docs/language/functions/strrev.mdx

1.11.6458 B
Original Source

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

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