mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
This type was one of the prototypes for `OrderedSet` — it allowed us to customize the collection type used for element storage. (E.g., using `Deque` instead of `Array` to get efficient insertions at the front.) The original idea was that `OrderedSet` would simply be a typealias: ```swift typealias OrderedSet<Element> = Uniqued<Array<Element>> ``` Unfortunately, while this concept is intellectually pleasing, in practice it just made the interface more complicated (and, in some cases, slower). Worse, it cannot be directly translated to an `OrderedDictionary`-style key-value mapping without major usability problems. # Conflicts: # Package.swift