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

     1  ---
     2  layout: "language"
     3  page_title: "reverse - Functions - Configuration Language"
     4  sidebar_current: "docs-funcs-collection-reverse"
     5  description: |-
     6    The reverse function reverses a sequence.
     7  ---
     8  
     9  # `reverse` Function
    10  
    11  `reverse` takes a sequence and produces a new sequence of the same length
    12  with all of the same elements as the given sequence but in reverse order.
    13  
    14  ## Examples
    15  
    16  ```
    17  > reverse([1, 2, 3])
    18  [
    19    3,
    20    2,
    21    1,
    22  ]
    23  ```
    24  
    25  ## Related Functions
    26  
    27  * [`strrev`](./strrev.html) reverses a string.