nix-learn/nix-language/AttributeSets/attributeAccess.nix

13 lines
187 B
Nix

let
attrset = { x = 1; };
in
attrset.x
# nested attributes
#let
# attrset2 = { a = { b = { c = 1; }; }; };
#in
#attrset2.a.b.c
# nested expression with dot notation
#{ a.b.c = 1; }