tvl-depot/tvix/eval/src/tests/tvix_tests/eval-okay-foldl.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
166 B
Nix
Raw Normal View History

[
(builtins.foldl' builtins.add 0 [1 2 3])
(builtins.foldl' (l1: l2: l1 ++ l2) [0] [[1] [2 3]])
(builtins.foldl' (x: y: if x == 0 then y else x * y) 0 [1 2])
]