Merge pull request #31011 from dleser/patch-1

Added example with function argument expansion
This commit is contained in:
Laura Pacilio 2022-06-28 16:50:09 -04:00 committed by GitHub
commit f83c8e1d18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
}
```