feat(tvix/eval): Support builtins.length
Get the length of a list Change-Id: I41d91e96d833269541a1b3c23b7cc879f96d1e5a Reviewed-on: https://cl.tvl.fyi/c/depot/+/6407 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
parent
15e2bc54f1
commit
197fe37dae
5 changed files with 24 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
[ 0 1 3 ]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(builtins.length [])
|
||||
(builtins.length [ 1 ])
|
||||
(builtins.length [ "one" "two" "three" ])
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue