feat(tvix/eval): Implement builtins.seq

Since we already have infra for forcing arguments to builtins, this ends
up being almost *too* simple - we just return the second argument!

Change-Id: I070d3d0b551c4dcdac095f67b31e22e0de90cbd7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6999
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
This commit is contained in:
Griffin Smith 2022-10-12 22:36:10 -04:00 committed by tazjin
parent 6e30fbbf7b
commit 89dbcbbb3d
4 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1 @@
builtins.seq (abort "foo") 2

View file

@ -0,0 +1 @@
2

View file

@ -0,0 +1 @@
builtins.seq 1 2