mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
Readded the new example below the description
This commit is contained in:
parent
37d18f4229
commit
ab93ef09ec
@ -27,8 +27,6 @@ type structure of the attributes after the merging rules have been applied.
|
||||
}
|
||||
```
|
||||
|
||||
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"}, {a=[1,2], c="z"}, {d=3})
|
||||
{
|
||||
@ -40,3 +38,14 @@ The following example uses the expansion symbol (...) to transform the value int
|
||||
"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