on master help sign in
Recursively combine the tree with the given combinator.
4fe9c0aPranay Sashank
src/Streamly/Internal/Prelude.hs+1−1
@@ -2643,7 +2643,7 @@ concatMapTreeWith
2643 -> t m (Either a b)
2643 -> t m (Either a b)
2644concatMapTreeWith combine f xs = concatMapWith combine go xs
2644concatMapTreeWith combine f xs = concatMapWith combine go xs
2645 where
2645 where
2646− go (Left tree) = Left tree `K.cons` concatMapWith combine go (f tree)
2646+ go (Left tree) = yield (Left tree) `combine` concatMapWith combine go (f tree)
2647 go (Right leaf) = yield $ Right leaf
2647 go (Right leaf) = yield $ Right leaf
2648
2648
2649{-
2649{-