tour-of-nix/23.nix

9 lines
156 B
Nix

let
x = 123;
as = { a = "foo"; b = "bar"; x="234"; };
in with as; {
res = x; # what value is res bound to?
}
# naiji: 'let' has priority over 'with'