add second @ pattern example
This commit is contained in:
parent
5c25bdee50
commit
2e4704ca93
1 changed files with 2 additions and 0 deletions
|
@ -339,6 +339,8 @@ the rest.
|
|||
<tr>
|
||||
<td>
|
||||
`{ x, y } @ args: x + y`
|
||||
|
||||
`args @ { x, y }: x + y`
|
||||
</td>
|
||||
<td>
|
||||
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