Collect `Iterator<Item = Result<impl Iterator<Item = T>, Error>>`

How to combine filter_map and flat_map?

I'd like to collect impl Iterator<Item = Result<impl Iterator<Item = T>, Error>> to Result<Vec<T>, Error>.

Ok, I found itertools::flatten_ok can work...

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.