Hi, I'm discovering bit by bit Monad Comprehension...
# arrow
k
Hi, I'm discovering bit by bit Monad Comprehension (on Option for now), and I'm trying to find a way to add some "error" (in case of Option: None) handling :
Copy code
ForOption extensions {
  binding { // Nothing like bindingCatch here?
    val op1 = Some(true).bind()
    val op2 = none<Boolean>().bind()

    // stuff
  }
}
What's the correct way to do this?