Dealing with Closures - Make code more generic
问题 There are two functions as shown below. Most of the functionality is the same in both. Its idea is to get the output of the webservice from getResponse() [Helper Callback], parse and pass the info to wrapper call back through getResult(). static func getAllDealers(dealerSearchServiceDomain: ARSDealerSearchServiceDomain, wrapperCallback:(getResult: () throws -> Void) -> Void) throws { try ARSInputValidator.validateZipCode(dealerSearchServiceDomain.zip) try ARSDealerConnection.getAllDealers