mirror of
https://github.com/NixOS/nix
synced 2025-07-07 10:11:47 +02:00
lib.concatMap and lib.mapAttrs to be builtins
This commit is contained in:
parent
3defdccf4b
commit
403a76a18f
5 changed files with 52 additions and 0 deletions
5
tests/lang/eval-okay-concatmap.nix
Normal file
5
tests/lang/eval-okay-concatmap.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
with import ./lib.nix;
|
||||
|
||||
[ (builtins.concatMap (x: if x / 2 * 2 == x then [] else [ x ]) (range 0 10))
|
||||
(builtins.concatMap (x: [x] ++ ["z"]) ["a" "b"])
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue