flatten: drastically improve performance, see #17626

wip/yesman
Domen Kožar 8 years ago
parent 8955dc5e7e
commit ebffa9fd06
  1. 2
      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.

Loading…
Cancel
Save