Swift Ordered Set
Swift does not have a native ordered set type. If you use Foundation, you can use NSOrderedSet in Swift. If not, you have the opportunity to write your own ordered set data structure. Update: Swift Package Manager includes an OrderedSet implementation that may be useful. It wraps both an array and a set and manages … Read more