Is there a way to directly create an `Either` with...
# arrow
g
Is there a way to directly create an
Either
with the correct types?
Copy code
.findByMonth(month, year)
.map { report -> eitherTry { report ?: throw NoDataException("No report found") } }
.map { either -> either.mapLeft { it as NoDataException } }
eitherTry
, instead of directly exposing the correct types, require me to map-cast them