toEither

fun <R> Result<R>.toEither(): Either<Throwable, R>

Converts kotlin's Result to Either.

Important: This is a Public Preview API. It may be changed or removed at any time.