It is O(n).
Note, the Any
isn't changing much here. It would also be O(n) to write it this way:
let objcDict: NSDictionary = ["one": 3, "two": "twoValue", "three": "three"]
let dict = objcDict as? [String: Any]
It is O(n).
Note, the Any
isn't changing much here. It would also be O(n) to write it this way:
let objcDict: NSDictionary = ["one": 3, "two": "twoValue", "three": "three"]
let dict = objcDict as? [String: Any]