I suppose the Set here may refers to Set<Int> because you are adding code in the Set<Int> extension, the compiler are using the minimum scope of the defination. So try to use .init(array) or Set<String>(array) would be fine.
Topic:
Programming Languages
SubTopic:
Swift
Tags: