From a2610a9b33707e895eb5910f938032c1fadf1406 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 1 Aug 2019 23:20:38 +0100 Subject: Add note about 'rec' in attribute sets --- nix/nix-1p/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/nix-1p/README.md b/nix/nix-1p/README.md index c0df448a43..2b41962673 100644 --- a/nix/nix-1p/README.md +++ b/nix/nix-1p/README.md @@ -96,6 +96,9 @@ second line # attribute sets (field access with dot syntax) { a = 15; b = "something else"; } + +# recursive attribute sets (fields can reference each other) +rec { a = 15; b = a * 2; } ``` ## Variable bindings -- cgit 1.4.1