mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
add second @ pattern example
This commit is contained in:
parent
5c25bdee50
commit
2e4704ca93
@ -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 New Issue
Block a user