Slide 79
Slide 79 text
@dokun24
@mccoyjus
struct Record: Codable {
var name: String
var office: String
}
enum RecordError: Error {
case newRecordError
}
func main(input: Record, respondWith: (Record?,
RecordError?) -> Void) {
let newRecord = Record(name: “David”, office: “IBM”)
respondWith(newRecord, nil)
}