https://kotlinlang.org logo
#arrow
Title
v

veiset

08/07/2018, 3:59 PM
the problem then (or maybe not) is this case:
Copy code
Right("hi")
   .map { ... }
   .mapLeft { "Some specific error." }
   .bind { 
       val user = getuser(it).bind()
       getAccount(user).bind()
    }.mapLeft { "Something else" }
But I'll look more into binding it at the top level.