After browsing through arrow's documentation, I ca...
# arrow
k
After browsing through arrow's documentation, I came across this in Error Handling, which looks more like what I tried to achieve:
Copy code
ForOption extensions {
            binding {
                val op1 = Some(true).bind()
                val op2 = none<Boolean>().bind()
                
                // stuff
                "result"
            }.fix().getOrElse { "wrong result" }
        }
Thanks again for this nice documentation for noobs like me 😉
👏 1