JM
jmgc/SwiftCollections
Native Swift Collections
SwiftCollections
Swift Collections is a package with different collections fully swift native.
Whenever possible, it uses the standard swift protocols, so they can be easily used to
substitute the estandard collections.
Contrary to standard swift collections that are based on struct, the present ones are all
based on classes. This will require to take into account mutability aspects.
The collections availableare:
- List: List protocol based on BidirectionalCollection
- BidirectionalList: Double linked list, follows the List protocol
- CircularList: Double linked circular list, follows the List protocol
- RBDictionary: Red-Black tree based dictionary, follows the Dictionary interface,
but uses comparable keys instead of hashable - RBSet: Red-Black tree set, follows the Set interface, but uses comparable keys instead
of hashable
On this page
Languages
Swift100.0%
Contributors
Latest Release
0.1.0January 14, 2021GNU General Public License v3.0
Created January 14, 2021
Updated April 23, 2023