map vs compactmap in swiftui code example Example: map vs compactmap in swiftui let definitelyNumbers = strings.compactMap { Int($0) }