
RxSwift: Better Error Handling With CompactMap
Use one of RxSwift 5’s newest features to streamline your code.
Study RxSwift long enough, say, a week or so, and you’re bound to run across some variant of the following code:
class NoErrorViewModel { var data: Observable<[String]>!
var dataService = DataService()