Use foldl' instead of fold in some places

This commit is contained in:
Eelco Dolstra
2015-07-23 17:19:21 +02:00
parent f92619f6b8
commit 637e35deb9
5 changed files with 18 additions and 14 deletions

View File

@@ -12,7 +12,7 @@ rec {
# Concatenate a list of strings.
concatStrings = lib.fold (x: y: x + y) "";
concatStrings = lib.foldl' (x: y: x + y) "";
# Map a function over a list and concatenate the resulting strings.