github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/website/docs/language/functions/strrev.html.md (about)

     1  ---
     2  layout: "language"
     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.