From 040140dd1c3c11e3aa1ca486c3f3596cbe99c008 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 May 2005 17:19:21 +0000 Subject: * 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. --- tests/lang/eval-okay-remove.nix | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/lang/eval-okay-remove.nix (limited to 'tests/lang/eval-okay-remove.nix') diff --git a/tests/lang/eval-okay-remove.nix b/tests/lang/eval-okay-remove.nix new file mode 100644 index 000000000000..4ad5ba897fa7 --- /dev/null +++ b/tests/lang/eval-okay-remove.nix @@ -0,0 +1,5 @@ +let { + attrs = {x = 123; y = 456;}; + + body = (removeAttrs attrs ["x"]).y; +} \ No newline at end of file -- cgit 1.4.1