github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/website/docs/language/functions/sum.mdx (about)

     1  ---
     2  page_title: sum - Functions - Configuration Language
     3  description: |-
     4    The sum function takes a list or set of numbers and returns the sum of those
     5    numbers.
     6  ---
     7  
     8  # `sum` Function
     9  
    10  `sum` takes a list or set of numbers and returns the sum of those numbers.
    11  
    12  ## Examples
    13  
    14  ```
    15  > sum([10, 13, 6, 4.5])
    16  33.5
    17  ```