Also not sure if you already ran into it but since...
# arrow
r
Also not sure if you already ran into it but since we have monad and monaderror instances for
Try
you can comprehend over the happy path of multiple Try computations.
Copy code
Try.monad().bindingE {
    val x = Try { 1 }
    val y = Try { x + 1 }
    val z = Try { y + 1 }
    yields(z)
}
//Success(3)
Copy code
Try.monad().bindingE {
    val x = Try { 1 }
    val y = Try { "not a number".toInt() }
    val z = Try { y + 1 }
    yields(z)
}
//Failure(NumberFormatException(...))