Calls fn if the result is Ok, otherwise returns the Err value.
fn
Ok
Err
Flat map function.
Result to flat map.
Flat mapped result.
Calls
fnif the result isOk, otherwise returns theErrvalue.