Swiftpack.co -  jmgc/SwiftCollections as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Native Swift Collections
.package(url: "https://github.com/jmgc/SwiftCollections.git", from: "v0.1")


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


Stars: 1
Last commit: 2 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

First commit
27 weeks ago

First release of SwiftCollections.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API