solutions/A Tour of Nix/23.nix

9 lines
156 B
Nix
Raw Normal View History

2024-04-16 19:13:00 -04:00
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'