Swiftpack.co - jmgc/SwiftCollections as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jmgc.
jmgc/SwiftCollections v0.1
Native Swift Collections
⭐️ 2
🕓 1 year ago
.package(url: "https://github.com/jmgc/SwiftCollections.git", from: "v0.1")

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

GitHub

link
Stars: 2
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

First commit
3 years ago

First release of SwiftCollections.

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