fold

inline fun <A> fold(failure: (ResourceEither.Failure<F, S>) -> A, success: (ResourceEither.Success<S>) -> A): A