2006-12-12 16:14:31 +00:00
|
|
|
with import ./lib.nix;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
attrs = {y = "y"; x = "x"; foo = "foo";} // rec {x = "newx"; bar = x;};
|
|
|
|
|
|
|
|
names = builtins.attrNames attrs;
|
|
|
|
|
|
|
|
values = map (name: builtins.getAttr name attrs) names;
|
|
|
|
|
2014-10-04 14:41:24 +00:00
|
|
|
in assert values == builtins.attrValues attrs; concat values
|