add second @ pattern example

This commit is contained in:
Valentin Gagarin 2022-08-12 14:13:03 +02:00
parent 5c25bdee50
commit 2e4704ca93

View File

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