mirror of
https://github.com/NixOS/nix
synced 2025-07-08 19:23:54 +02:00
Add primop ‘catAttrs’
This commit is contained in:
parent
d4fcbe1687
commit
c3f0a489f9
3 changed files with 32 additions and 0 deletions
1
tests/lang/eval-okay-catattrs.exp
Normal file
1
tests/lang/eval-okay-catattrs.exp
Normal file
|
@ -0,0 +1 @@
|
|||
[ 1 2 ]
|
1
tests/lang/eval-okay-catattrs.nix
Normal file
1
tests/lang/eval-okay-catattrs.nix
Normal file
|
@ -0,0 +1 @@
|
|||
builtins.catAttrs "a" [ { a = 1; } { b = 0; } { a = 2; } ]
|
Loading…
Add table
Add a link
Reference in a new issue