toEither

fun <E, A> Result<A, E>.toEither(): Either<E, A>