diff options
author | Domen Kožar <domen@dev.si> | 2016-08-10 12:02:58 +0200 |
---|---|---|
committer | Domen Kožar <domen@dev.si> | 2016-08-10 12:02:58 +0200 |
commit | ebffa9fd06af825d161d9da8d43f93ddb6b1f313 (patch) | |
tree | f3ecc267de3d12a25e7b8db214d3cc45223a658a /lib | |
parent | 8955dc5e7eda061206854624ceca03d150d5e7da (diff) |
flatten: drastically improve performance, see #17626
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lists.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lists.nix b/lib/lists.nix index 6712e5cc93f8..78ffa753ac33 100644 --- a/lib/lists.nix +++ b/lib/lists.nix @@ -89,7 +89,7 @@ rec { */ flatten = x: if isList x - then foldl' (x: y: x ++ (flatten y)) [] x + then concatMap (y: flatten y) x else [x]; /* Remove elements equal to 'e' from a list. Useful for buildInputs. |