lix-releng-staging/tests/lang/eval-fail-remove.nix
Eelco Dolstra 040140dd1c * Added a primop `removeAttrs' to remove attributes from a set, e.g.,
`removeAttrs attrs ["x", "y"]' returns the set `attrs' with the
  attributes named `x' and `y' removed.  It is not an error for the
  named attributes to be missing from the input set.
2005-05-18 17:19:21 +00:00

5 lines
77 B
Nix

let {
attrs = {x = 123; y = 456;};
body = (removeAttrs attrs ["x"]).x;
}