mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
7 lines
271 B
Nix
7 lines
271 B
Nix
|
# 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 does not.
|
||
|
builtins.foldl'
|
||
|
(_: x: x)
|
||
|
(throw "This is never forced")
|
||
|
[ "but the results of applying op are" 42 ]
|