Skip to main content

try_map

Function try_map 

Source
pub fn try_map<A, B, E, F, I>(items: I, f: F) -> OxiEither<Vec<B>, E>
where I: IntoIterator<Item = A>, F: Fn(A) -> OxiEither<B, E>,
Expand description

Apply a mapping that may fail, short-circuiting on the first error.