toKResult

fun <A, B> Either<A, B>.toKResult(): KResult<A, B>(source)

Transforms an Arrow Either to a KResult

import arrow.core.Either
import io.kotest.matchers.shouldBe
import io.kresult.integration.arrow.toKResult

fun test() {
Either.Right("test")
.toKResult()
.isSuccess() shouldBe true
}