snix/tvix/eval/src/tests
Vincent Ambo 876c477256 feat(tvix/eval): implement builtins.map
As we already have a VM passed to the builtins, we can simply execute
the provided closure/lambda in it for each value.

The primary annoyance with this is that we have to clone the upvalues
for each element, but we can try making this cheaper in the
future (it's also a general problem in the VM itself).

Change-Id: I5bcf56d58c509c0eb081e7cf52f6093216451ce4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6714
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
2022-09-20 23:37:53 +00:00
..
nix_tests fix(tvix/eval): correctly escape ${ in strings 2022-09-03 00:47:58 +00:00
tvix_tests feat(tvix/eval): implement builtins.map 2022-09-20 23:37:53 +00:00
mod.rs refactor(tvix/eval): use Clap for arg+env parsing 2022-09-18 22:08:43 +00:00