summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNathaniel W Griswold <nwg@nan.sh>2023-12-14 09:13:20 -0600
committerGitHub <noreply@github.com>2023-12-14 16:13:20 +0100
commitc2ba7b321ff62e0a8c13c7f3fe012f0a15d901da (patch)
treeb41a5d565411ffebbb81d81aee463caf56147868
parentad6b3df619a464c99439534f436a85707b679c80 (diff)
[nix/en] Add `@` syntax to set pattern matching section (#4170)
-rw-r--r--nix.html.markdown3
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
#=========================================