Extracts either the Success value or the Failure error, returning the nearest common Ancestor type.
Use fold instead when each state needs a different transformation.
The nearest common ancestor of Ok and Error.