mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
Merge pull request #109 from apple/readme-update
[README] Note that `Heap` hasn't been tagged yet & list other enhancements in progress
This commit is contained in:
1 file changed
+10
-2
@@ -16,12 +16,20 @@ The package currently provides the following implementations:
|
||||
|
||||
- [`OrderedDictionary<Key, Value>`][OrderedDictionary], an ordered variant of the standard `Dictionary`, providing similar benefits.
|
||||
|
||||
- [`Heap<Element>`](Documentation/Heap.md), a min-max heap backed by an array.
|
||||
|
||||
[Deque]: Documentation/Deque.md
|
||||
[OrderedSet]: Documentation/OrderedSet.md
|
||||
[OrderedDictionary]: Documentation/OrderedDictionary.md
|
||||
|
||||
The following data structures are currently being worked on but they aren't ready for inclusion in a tagged release:
|
||||
|
||||
- [`Heap`][Heap] and [`PriorityQueue`](https://github.com/apple/swift-collections/pull/51), min-max heaps backed by an array.
|
||||
- [`SortedSet` and `SortedDictionary`](https://github.com/apple/swift-collections/pull/65), sorted collections backed by in-memory persistent b-trees.
|
||||
- [`HashSet` and `HashMap`](https://github.com/apple/swift-collections/pull/31), persistent hashed collections implemented as Compressed Hash-Array Mapped Prefix-Trees (CHAMP).
|
||||
- [`BitArray` and `BitSet`](https://github.com/apple/swift-collections/pull/83), dynamic bit vectors.
|
||||
- [`SparseSet`](https://github.com/apple/swift-collections/pull/80), a constant time set construct, trading off memory for speed.
|
||||
|
||||
[Heap]: Documentation/Heap.md
|
||||
|
||||
Swift Collections uses the same modularization approach as [**Swift Numerics**](https://github.com/apple/swift-numerics): it provides a standalone module for each thematic group of data structures it implements. For instance, if you only need a double-ended queue type, you can pull in only that by importing `DequeModule`. `OrderedSet` and `OrderedDictionary` share much of the same underlying implementation, so they are provided by a single module, called `OrderedCollections`. However, there is also a top-level `Collections` module that gives you every collection type with a single import statement:
|
||||
|
||||
``` swift
|
||||
|
||||
Reference in new issue
Block a user