Is it possible to have kotlin Result be exhaustive it seems to hide Success and Failure so I want to basically do something like this within a extension function
which isn't the best choice for this application but you might use something similar if the transform itself can throw and you want to flatten that error (e.g. with
mapCatching
,
recoverCatching
)
🙏 1
m
Manish Jain
04/22/2022, 7:20 AM
@David Corrado I have created a object class for this.Please check and let me know it would be work as you expected