blob: 148e94954c40a52edb123beb9924727e8ef47cd1 (
plain)
1
2
3
4
5
6
|
# Checks that the nul value for the accumulator is not forced unconditionally.
# Some languages provide a foldl' that is strict in this argument, but Nix language does not.
builtins.foldl'
(_: x: x)
(throw "This is never forced")
[ "but the results of applying op are" 42 ]
|