Hi very new in using Arrow. Was wondering how to h...
# arrow
a
Hi very new in using Arrow. Was wondering how to handle scenario where I have two
Either
and both have to be
right
for me to do proper computation?
Is this correct?
Copy code
suspend fun test() = either {
   val r1 = Either.Right(1).bind()
   val r2 = Either.Right(2).bind()"

    r1 + r2        
}
Thanks in advance
y
Yes, or you could do
Either.Right(1).zip(Either.Right(2)) {a, b -> a + b }
a
Ah! Thank you very much!