feat(tvix/eval): implement builtins.concatLists

Concatenates (but not flattens) a list of lists.

Change-Id: I692e0b3e7b5a5ff93d5768d3a27849b432ec5747
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6843
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2022-10-02 19:41:39 +03:00 committed by tazjin
parent 3c9520a4e5
commit 939b2194fe
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1 @@
[ [ ] [ 1 2 3 4 5 6 ] [ [ 1 ] [ 2 ] [ 3 ] ] [ 1 2 3 4 5 6 ] ]

View file

@ -0,0 +1,6 @@
[
(builtins.concatLists [ ])
(builtins.concatLists [ [ 1 2 ] [ 3 4 ] [ 5 6 ] ])
(builtins.concatLists [ [ [ 1 ] [ 2 ] ] [ [ 3 ] ] [ ] ])
(builtins.concatLists [ [ 1 2 ] [ ] [ 3 4 ] [ ] [ 5 6 ] ])
]