I have specific logic in Java that uses a HashSet<String> . Collection set contains only unique elements.
For instance:
Set<String> mySets = new HashSet<String>(); mySets.add("a"); mySets.add("a"); mySets.add("b"); mySets.add("a");
I get: ["a","b"] .
What is the equivalent collection in Swift?
Thanks,
source share