about summary refs log tree commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-foldlStrict.nix
blob: aadf5e1121eaa4d7a6e361f5ea76526583fe231f (plain) (blame)
1
2
3
4
5
[
  (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 ])
]