about summary refs log blame commit diff
path: root/tvix/eval/src/tests/tvix_tests/eval-okay-foldlStrict-lazy-elements.nix
blob: fc4129a2543ab2b9da30ddca71a3bf84ea91b91d (plain) (tree)
1
2
3
4
5
6
7
8







                                                 
let
  lst = builtins.foldl'
    (acc: x: acc ++ [ x ])
    [ ]
    [ 42 (throw "this shouldn't be evaluated") ];
in

builtins.head lst