Where's haskell's traverse
for Result
and Option
? For result, it's of type Iterator<Result<V,E>> -> Result<Iterator<V>,E>
You can .collect()
an Iterator<Item=Result<V,E>>
into a Result<Vec<V>,E>
.
Where's haskell's traverse
for Result
and Option
? For result, it's of type Iterator<Result<V,E>> -> Result<Iterator<V>,E>
You can .collect()
an Iterator<Item=Result<V,E>>
into a Result<Vec<V>,E>
.