toResult

inline fun <T, E : Throwable> Either<T, E>.toResult(): Result<T>(source)