Readded the new example below the description

This commit is contained in:
Dirk Leser 2022-06-17 14:42:52 +02:00 committed by GitHub
parent 37d18f4229
commit ab93ef09ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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