mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Merge pull request #31011 from dleser/patch-1
Added example with function argument expansion
This commit is contained in:
@@ -38,3 +38,14 @@ type structure of the attributes after the merging rules have been applied.
|
||||
"d" = 3
|
||||
}
|
||||
```
|
||||
|
||||
The following example uses the expansion symbol (...) to transform the value into separate arguments. Refer to [Expanding Function Argument](/language/expressions/function-calls#expanding-function-arguments) for details.
|
||||
|
||||
```
|
||||
> merge([{a="b", c="d"}, {}, {e="f", c="z"}]...)
|
||||
{
|
||||
"a" = "b"
|
||||
"c" = "z"
|
||||
"e" = "f"
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user