How to implement a Mutable Ordered Set generic type formerly known as NSMutableOrderedSet in native Swift?
问题 The bounty expires in 7 days . Answers to this question are eligible for a +250 reputation bounty. Leo Dabus is looking for an answer from a reputable source . I am trying to implement a generic Mutable Ordered Set type and it needs to conform to many protocols to behave the same way as an Array and a Set does in Swift. First of all to accomplish that the generic type element needs to conform to Hashable and the generic struct needs to conform to RandomAccessCollection, SetAlgebra,