blob: e5b26e9f2e39d7ef459c565a9e2272336fdf4fe2 (
plain) (
tree)
|
|
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;
in assert values == builtins.attrValues attrs; concat values
|