Archie
09/09/2022, 2:50 AMEither
and both have to be right
for me to do proper computation?Archie
09/09/2022, 3:02 AMsuspend fun test() = either {
val r1 = Either.Right(1).bind()
val r2 = Either.Right(2).bind()"
r1 + r2
}
Thanks in advanceYoussef Shoaib [MOD]
09/09/2022, 4:58 AMEither.Right(1).zip(Either.Right(2)) {a, b -> a + b }
Archie
09/09/2022, 5:02 AM