github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/website/docs/configuration/functions/strrev.html.md (about)

     1  ---
     2  layout: "functions"
     3  page_title: "strrev - Functions - Configuration Language"
     4  sidebar_current: "docs-funcs-string-strrev"
     5  description: |-
     6    The strrev function reverses a string.
     7  ---
     8  
     9  # `strrev` Function
    10  
    11  `strrev` reverses the characters in a string.
    12  Note that the characters are treated as _Unicode characters_ (in technical terms, Unicode [grapheme cluster boundaries](https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries) are respected).
    13  
    14  ```hcl
    15  strrev(string)
    16  ```
    17  
    18  ## Examples
    19  
    20  ```
    21  > strrev("hello")
    22  olleh
    23  > strrev("a ☃")
    24  ☃ a
    25  ```
    26  
    27  ## Related Functions
    28  
    29  * [`reverse`](./reverse.html) reverses a sequence.