I am using an api which returns various different ...
# announcements
w
I am using an api which returns various different error types. is their any idiomatic way in kotlin to make a bunch of calls without having to do something like this for each of them?
Copy code
foo.fizz().let { error ->
            if (error.isNotNone()) {
                // log error and maybe worse if the error is bad
            }
        }