feat(tvix/eval): Implement builtins.concatMap
Change-Id: I08bfd040a242aa43b64760c19f48a28303f206ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/6900 Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
afdf1e0ed0
commit
b6089fb1e5
3 changed files with 15 additions and 0 deletions
1
tvix/eval/src/tests/tvix_tests/eval-okay-concatmap.exp
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-concatmap.exp
Normal file
|
@ -0,0 +1 @@
|
|||
[ "a" "z" "b" "z" ]
|
1
tvix/eval/src/tests/tvix_tests/eval-okay-concatmap.nix
Normal file
1
tvix/eval/src/tests/tvix_tests/eval-okay-concatmap.nix
Normal file
|
@ -0,0 +1 @@
|
|||
(builtins.concatMap (x: [x] ++ ["z"]) ["a" "b"])
|
Loading…
Add table
Add a link
Reference in a new issue