toKResult
Transforms an Arrow Either to a KResult
import arrow.core.Either
import io.kotest.matchers.shouldBe
import io.kresult.arrow.toKResult
fun test() {
Either.Right("test")
.toKResult()
.isSuccess() shouldBe true
}
Content copied to clipboard