iOS Swift - Local Data Persistence
What will be the result of this code?
What does
let people = ["Anna", "Bob", "Charlie", "David"] let predicate = NSPredicate(format: "SELF BEGINSWITH[c] 'b'") let filtered = (people as NSArray).filtered(using: predicate) as! [String]
What does
filtered contain?