I'm seeing the following code:
val a = (x: Int) => (x == 1).option(doSomethingUnrealiable(1))
Is this equivalent to:
val a = (x: Int) => if (x == 1) Option(doSomethingUnrealiable(1))
I ask because I'm struggling to find doco on Scalaz for this .option
method.