Category Swift

Let’s learn Set in Swift language

Set is different from Array. Array is ordered. By the way Set isn’t. Another different thing is Array can have same elements. For example, let ar1 = [1, 1, 1, 1] The code above is possible in Array. But you…