SecretX
fun test() = either<String, SomeObject> { val someString = "" // how can I return 'someString' as the left value of this either? }
Wesley Hartford
someString.left().bind()
alightgoesout
suspend fun ensure(value: Boolean, orLeft: () -> E)
EitherEffect
A modern programming language that makes developers happier.