How can I access an enum value for a specific case without having to implement an enum function for each case?
I\'m thinking something like this:
enum Re
I'm afraid this is the most you can get:
let error: String? if case .failure(let e) = resultFailure {error = e}