thank <@U0B8UEMV1> <@U4UGS5FC7> can you provide ex...
# arrow
h
thank @pakoito @raulraja can you provide example of how can I use
mapleft
as I tried and I don't know where to place it. here is my full code snippet
Copy code
val testResult: Either<Errors, Result> = validateUserImpl.validateUser(token) 

                    when (testResult) {
                    is Either.Right -> {
                        if (!testResult.b.authorised) {
                            return unauthorized()
                        }

                        // some code here
                    }
                    is Either.Left -> {
                        logger.error("Error", testResult.a.message)
                        return systemError()
                    }