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
Deque
overArray
is that it supports efficient insertions and removals at both ends.[…]
OrderedSet
is a powerful hybrid of anArray
and aSet
.[…]
OrderedDictionary
is a useful alternative toDictionary
when 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