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?
-
Show this thread
-
Replying to @yoshuawuyts
Do you want to _handle_ all errors or stop on first error?
1 reply 0 retweets 0 likes -
-
-
Replying to @yoshuawuyts @Argorak
Ah, I think the only downside here is that all values need to be buffered intermediately, which means on a non-finite iterator it may hang unless there's an error :/ This is getting real close tho!
5:07 AM - 5 Jul 2019
0 replies
0 retweets
0 likes
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.