feat(tvix/eval): Implement builtins.removeAttrs
Change-Id: I28910991a0108436a42ac7bf3458f9180a44154e Reviewed-on: https://cl.tvl.fyi/c/depot/+/6928 Reviewed-by: Adam Joseph <adam@westernsemico.com> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
562c50fadd
commit
4283f0139a
4 changed files with 31 additions and 1 deletions
5
tvix/eval/src/tests/tvix_tests/eval-fail-remove.nix
Normal file
5
tvix/eval/src/tests/tvix_tests/eval-fail-remove.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
let {
|
||||
attrs = {x = 123; y = 456;};
|
||||
|
||||
body = (removeAttrs attrs ["x"]).x;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue