mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #31011 from dleser/patch-1
Added example with function argument expansion
This commit is contained in:
commit
f83c8e1d18
@ -38,3 +38,14 @@ type structure of the attributes after the merging rules have been applied.
|
|||||||
"d" = 3
|
"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"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user