Swift “Collections” Package
I’m thrilled to announce Swift Collections, a new open-source package focused on extending the set of available Swift data structures. Like the Swift Algorithms and Swift Numerics packages before it, we’re releasing Swift Collections to help incubate new functionality for the Swift Standard Library.
[…]
The main benefit of
DequeoverArrayis that it supports efficient insertions and removals at both ends.[…]
OrderedSetis a powerful hybrid of anArrayand aSet.[…]
OrderedDictionaryis a useful alternative toDictionarywhen the order of elements is important or we need to be able to efficiently access elements at various positions within the collection.
Previously:
- Swift “Algorithms” Package
- Introducing Swift Atomics
- Swift System Is Now Open Source
- Swift Argument Parser
- Swift Numerics