diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-23T15·03+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-07-23T15·03+0200 |
commit | 61af14a9219bff090b238f15c9def5453087aa5d (patch) | |
tree | 1ea17f961d74fb236d0b31c524d19fdfe9678a5c /tests/lang | |
parent | 887bb5fa5a5a7b8b91d371de1a5c8280f9505744 (diff) |
Add foldl' primop
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/lib.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lang/lib.nix b/tests/lang/lib.nix index 882005dc1b5c..262cdd7e8fd0 100644 --- a/tests/lang/lib.nix +++ b/tests/lang/lib.nix @@ -17,7 +17,7 @@ rec { then fold (x: y: (flatten x) ++ y) [] x else [x]; - sum = fold (x: y: add x y) 0; + sum = foldl' (x: y: add x y) 0; hasSuffix = ext: fileName: let lenFileName = stringLength fileName; |