From 7b3bda9e089fe9de2d28a28f64ef8532abb3ac9c Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 23 Oct 2022 12:28:23 -0400 Subject: feat(tvix/eval): Implement builtins.mapAttrs I played around a little bit with doing this in-place, but ended up going with this perhaps slightly clone-heavy approach for now because ideally most clones on Value are cheap - but later we should benchmark alternate approaches that get to reuse allocations better if necessary or possible. Change-Id: If998eb2056cedefdf2fb480b0568ac8329ccfc44 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7068 Autosubmit: grfn Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/eval/src/tests/nix_tests/eval-okay-mapattrs.exp | 1 + 1 file changed, 1 insertion(+) create mode 100644 tvix/eval/src/tests/nix_tests/eval-okay-mapattrs.exp (limited to 'tvix/eval/src/tests/nix_tests/eval-okay-mapattrs.exp') diff --git a/tvix/eval/src/tests/nix_tests/eval-okay-mapattrs.exp b/tvix/eval/src/tests/nix_tests/eval-okay-mapattrs.exp new file mode 100644 index 000000000000..3f113f17bab1 --- /dev/null +++ b/tvix/eval/src/tests/nix_tests/eval-okay-mapattrs.exp @@ -0,0 +1 @@ +{ x = "x-foo"; y = "y-bar"; } -- cgit 1.4.1