(response: Driver<Response>, error: Driver<Error>) { let responseDriver = result.flatMap { result -> Driver<Response> in switch result { case .succeeded(let response): return Driver.just(response) case .failed: return Driver.empty() } } let errorDriver = result.flatMap { result -> Driver<Error> in switch result { case .succeeded: return Driver.empty() case .failed(let error): return Driver.just(error) } } return (responseDriver, errorDriver) } } 16