mirror of
https://github.com/NixOS/nix.git
synced 2024-11-29 18:22:27 +00:00
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 New Issue
Block a user