I don't see a channel dedicated to the kotlin-result library so allow me to ask here because kotlin-result is partly inspired by Arrow's Either so the problem might be similar in both frameworks.
In my controller, when I get a Result, I want to either throw an error in case of Err, or transform Ok. Is there a nicer way than this?