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:
parent
3c9520a4e5
commit
939b2194fe
3 changed files with 21 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
[ [ ] [ 1 2 3 4 5 6 ] [ [ 1 ] [ 2 ] [ 3 ] ] [ 1 2 3 4 5 6 ] ]
|
||||
|
|
@ -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 ] ])
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue