Skip to main content
Journey Uncommon Logo
JourneyUncommon
easySwiftmap filter reduceSingle-choice MCQ

Given an array of optional Ints, which call produces `[1, 2, 3]` from `[1, nil, 2, nil, 3]`?

let nums: [Int?] = [1, nil, 2, nil, 3]