Does anyone have an example of going from an Iterator of type Result<T, SomeError> to Iterator of type T, while handling all errors? I can see how this could be done with `for x in y` syntax, but I'm wondering if this can be done using combinators. Can it?
ah yeah, that makes a lot of sense! Another question: does this buffer the incoming data until the underlying iterator is done? It does right?
-
-
Yeah, collect() does that p much by definition. You still need something to collect into, a Vec or smth.
-
Ah yeah that makes a lot of sense. In the use case I'm thinking of the iterator may yield indefinitely, so I can't use collect it seems :( Thanks heaps for the thorough explanation tho, this has been very helpful!
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
