diff options
author | Nathaniel W Griswold <nwg@nan.sh> | 2023-12-14 09:13:20 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-14 16:13:20 +0100 |
commit | c2ba7b321ff62e0a8c13c7f3fe012f0a15d901da (patch) | |
tree | b41a5d565411ffebbb81d81aee463caf56147868 | |
parent | ad6b3df619a464c99439534f436a85707b679c80 (diff) |
[nix/en] Add `@` syntax to set pattern matching section (#4170)
-rw-r--r-- | nix.html.markdown | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nix.html.markdown b/nix.html.markdown index cf412864..c2a2c074 100644 --- a/nix.html.markdown +++ b/nix.html.markdown @@ -305,6 +305,9 @@ with builtins; [ ({x, y, ...}: x + "-" + y) { x = "a"; y = "b"; z = "c"; } #=> "a-b" + # The entire set can be bound to a variable using `@` + (args@{x, y}: args.x + "-" + args.y) { x = "a"; y = "b"; } + #=> "a-b" # Errors #========================================= |