mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
625 B
625 B
layout | page_title | sidebar_current | description |
---|---|---|---|
functions | strrev - Functions - Configuration Language | docs-funcs-string-strrev | The strrev function reverses a string. |
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).
strrev(string)
Examples
> strrev("hello")
olleh
> strrev("a ☃")
☃ a
Related Functions
reverse
reverses a sequence.