Added example with function argument expansion

Even if the expansion with three dots is explicity mentioned in https://www.terraform.io/language/expressions/function-calls#expanding-function-arguments the additional example would have helped me a lot as it is a common use case to "flatten" a list of maps.
pull/31011/head
Dirk Leser 4 years ago committed by GitHub
parent ec890211b6
commit 707f39b440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -27,6 +27,15 @@ type structure of the attributes after the merging rules have been applied.
}
```
```
> merge([{a="b", c="d"}, {}, {e="f", c="z"}]...)
{
"a" = "b"
"c" = "z"
"e" = "f"
}
```
```
> merge({a="b"}, {a=[1,2], c="z"}, {d=3})
{

Loading…
Cancel
Save