tvl-depot/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-length.nix
William Carroll 197fe37dae 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>
2022-09-07 20:56:02 +00:00

5 lines
97 B
Nix

[
(builtins.length [])
(builtins.length [ 1 ])
(builtins.length [ "one" "two" "three" ])
]