Tuesday, April 6, 2021

Swift “Collections” Package

Karoy Lorentey (tweet):

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 over Array is that it supports efficient insertions and removals at both ends.


OrderedSet is a powerful hybrid of an Array and a Set.


OrderedDictionary is a useful alternative to Dictionary when the order of elements is important or we need to be able to efficiently access elements at various positions within the collection.


Comments RSS · Twitter

Leave a Comment