Shalom Halbert
03/10/2022, 9:04 PMfun onSomethingChecked(isTrue: Boolean, onTrue: () -> Unit, onFalse: () -> Unit) {...}
simon.vergauwen
03/11/2022, 11:37 AMEither.conditionally
but I am personally more a fan of just using if exprssions
.
https://arrow-kt.io/docs/apidocs/arrow-core/arrow.core/-either/-companion/conditionally.htmlShalom Halbert
03/11/2022, 1:52 PMShalom Halbert
03/11/2022, 1:53 PMif
/`else` , but this is a special case where the goal is to extract the `if`/`else` from a UI layerShalom Halbert
03/11/2022, 1:53 PMMervyn McCreight
03/15/2022, 5:27 PMUnit
in a positive case, what do you think about using ensure
?
https://arrow-kt.io/docs/apidocs/arrow-core/arrow.core.computations/-either-effect/ensure.htmlShalom Halbert
03/22/2022, 11:57 AM