mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 10:16:15 +02:00
040140dd1c
`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.
5 lines
No EOL
77 B
Nix
5 lines
No EOL
77 B
Nix
let {
|
|
attrs = {x = 123; y = 456;};
|
|
|
|
body = (removeAttrs attrs ["x"]).y;
|
|
} |