mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
This does not include any automation for the release branch, but is based on the configuration of https://github.com/NixOS/nix/pull/12349 pre-commit run -a nixfmt-rfc-style
6 lines
269 B
Nix
6 lines
269 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
|
|
]
|