generatedConfigs built its list with a non-strict foldl that appended via acc ++ [ p.config ], an O(n^2) pattern. Filtering out null configs and mapping is equivalent, order-preserving, and avoids the repeated list copies.
generatedConfigs built its list with a non-strict foldl that appended via acc ++ [ p.config ], an O(n^2) pattern. Filtering out null configs and mapping is equivalent, order-preserving, and avoids the repeated list copies.