Swift - Optionals
You have a dictionary of user IDs to optional email addresses:
How can you safely create a new dictionary mapping user IDs to non-optional emails, excluding users without emails?
let emails: [Int: String?] = [1: "a@example.com", 2: nil, 3: "c@example.com"]
How can you safely create a new dictionary mapping user IDs to non-optional emails, excluding users without emails?
