Maps this Result to Result by either applying the transform function if this Result is Ok, or returning this Err.
This is functionally equivalent to andThen.
Scala: Either.flatMap