From c2ba7b321ff62e0a8c13c7f3fe012f0a15d901da Mon Sep 17 00:00:00 2001
From: Nathaniel W Griswold <nwg@nan.sh>
Date: Thu, 14 Dec 2023 09:13:20 -0600
Subject: [nix/en] Add `@` syntax to set pattern matching section (#4170)

---
 nix.html.markdown | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'nix.html.markdown')

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
   #=========================================
-- 
cgit v1.2.3