add second @ pattern example
This commit is contained in:
parent
5c25bdee50
commit
2e4704ca93
|
@ -339,6 +339,8 @@ the rest.
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
`{ x, y } @ args: x + y`
|
`{ x, y } @ args: x + y`
|
||||||
|
|
||||||
|
`args @ { x, y }: x + y`
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
A function that expects a set with required attributes `x` and `y`, and binds the whole set to `args`
|
A function that expects a set with required attributes `x` and `y`, and binds the whole set to `args`
|
||||||
|
|
Loading…
Reference in a new issue