@@ -341,6 +341,8 @@ nix-repl> [ import ./hello.nix {} ]
341341## Множества аттрибутов (attribute sets, attrsets)
342342```
343343nix-repl> s = { foo = "bar"; a-b = "baz"; "123" = "num"; }
344+nix-repl> :t s
345+a set
344346nix-repl> s
345347{ "123" = "num"; a-b = "baz"; foo = "bar"; }
346348nix-repl> s.a-b
@@ -349,8 +351,6 @@ nix-repl> s."123"
349351"num"
350352nix-repl> s.${toString (122 + 1)}
351353"num"
352−nix-repl> s.abc or "not found" # Note that `or` is a keyword
353−"not found"
354354```
355355***
356356```
@@ -358,8 +358,10 @@ nix-repl> s ? "123"
358358true
359359nix-repl> s ? a-b
360360true
361−nix-repl> s ? sjdnfksjd
361+nix-repl> s ? abc
362362false
363+nix-repl> s.abc or "not found" # Note that `or` is a keyword
364+"not found"
363365nix-repl> s // { a = 10; }
364366{ "123" = "num"; a = 10; a-b = "baz"; foo = "bar"; }
365367nix-repl> rec { a = 3; b = a + 4; } # Recursive attrset