toResult

fun <L, R> Either<L, R>.toResult(): Result<R, L>

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