diff options
author | William Carroll <wpcarro@gmail.com> | 2022-09-06T18·58-0700 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-09-17T12·54+0000 |
commit | 3a67a140093335e93cee560c1d2f9873035ffa95 (patch) | |
tree | b8f8bf10d78aaf6fd1c45a0c2b368c6d87c75290 /tvix/eval/src/tests/tvix_tests/eval-okay-builtins-elemat.nix | |
parent | 53fbc75df9ee4aa06eccc9f12bfe9cab8eab5755 (diff) |
feat(tvix/eval): Support builtins.elemAt r/4882
(Attempt to) index into a list. Change-Id: I3592e60a79e64d265e34100d4062041b0b410e00 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6551 Reviewed-by: wpcarro <wpcarro@gmail.com> Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/tests/tvix_tests/eval-okay-builtins-elemat.nix')
-rw-r--r-- | tvix/eval/src/tests/tvix_tests/eval-okay-builtins-elemat.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-elemat.nix b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-elemat.nix new file mode 100644 index 000000000000..762adeebbf0a --- /dev/null +++ b/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-elemat.nix @@ -0,0 +1,5 @@ +[ + (builtins.elemAt [ "foo" "bar" "baz" ] 0) + (builtins.elemAt [ "foo" "bar" "baz" ] 1) + (builtins.elemAt [ "foo" "bar" "baz" ] 2) +] |