mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
functions/merge: Added expanation for example
Co-authored-by: Laura Pacilio <83350965+laurapacilio@users.noreply.github.com>
This commit is contained in:
@@ -27,14 +27,7 @@ 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"
|
||||
}
|
||||
```
|
||||
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})
|
||||
|
||||
Reference in New Issue
Block a user