Add test for foldl'

This commit is contained in:
Eelco Dolstra 2020-03-02 17:27:48 +01:00
parent 22a754c091
commit d700eecea9
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1 @@
500500

View file

@ -0,0 +1,3 @@
with import ./lib.nix;
builtins.foldl' (x: y: x + y) 0 (range 1 1000)