Is there a conventional way for mapping a `Boolean` to `Either` or some other type? The intended res...
s
Is there a conventional way for mapping a
Boolean
to
Either
or some other type? The intended result is to abstract
if (true) {…} else {…}
into something like
fold