mirror of
https://github.com/NixOS/nix.git
synced 2025-12-08 01:51:01 +01:00
Add test for foldl'
This commit is contained in:
parent
22a754c091
commit
d700eecea9
2 changed files with 4 additions and 0 deletions
1
tests/lang/eval-okay-foldlStrict.exp
Normal file
1
tests/lang/eval-okay-foldlStrict.exp
Normal file
|
|
@ -0,0 +1 @@
|
|||
500500
|
||||
3
tests/lang/eval-okay-foldlStrict.nix
Normal file
3
tests/lang/eval-okay-foldlStrict.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
with import ./lib.nix;
|
||||
|
||||
builtins.foldl' (x: y: x + y) 0 (range 1 1000)
|
||||
Loading…
Add table
Add a link
Reference in a new issue