lib.lists.flatten: save function call when recursing

This commit is contained in:
Eman Resu
2026-06-24 18:29:21 -04:00
parent 986cf9adb8
commit 0f096eb287
+1 -1
View File
@@ -445,7 +445,7 @@ rec {
:::
*/
flatten = x: if isList x then concatMap (y: flatten y) x else [ x ];
flatten = x: if isList x then concatMap flatten x else [ x ];
/**
Remove elements equal to `e` from a list. Useful for `buildInputs`.