Larry Garfield
06/04/2024, 7:39 PMfun doThing(...): Either<String, Boolean> { ... }
when (val result = doThing(...)) {
is Either.Left -> do error stuff
is Either.Right -> Do different thing depending on if the bool was true or false.
}
How do I get at the value stored in the Right?