* 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.
This commit is contained in:
Eelco Dolstra 2005-05-18 17:19:21 +00:00
parent 109cde6706
commit 040140dd1c
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,5 @@
let {
attrs = {x = 123; y = 456;};
body = (removeAttrs attrs ["x"]).x;
}

View file

@ -0,0 +1 @@
Int(456)

View file

@ -0,0 +1,5 @@
let {
attrs = {x = 123; y = 456;};
body = (removeAttrs attrs ["x"]).y;
}