kobby
05/04/2020, 6:14 PMsuspend fun one(): Either<Error, Int>
suspend fun two(i: Int): Either<Error, Value>
launch{
one().fold(::Left, { right ->
two(right) /// <- Kotlin is complaining that this needs to be in a coroutine scope
}
}
Can you do this?pakoito
05/04/2020, 6:32 PMpakoito
05/04/2020, 6:32 PMkobby
05/04/2020, 7:08 PMkobby
05/04/2020, 7:27 PMimport arrow.core.extensions.either.monad.binding
pakoito
05/04/2020, 7:48 PMfx
nowpakoito
05/04/2020, 7:54 PMpakoito
05/04/2020, 7:54 PMfx
nowkobby
05/05/2020, 8:41 AM