Karoy Lorentey
86bce28835
[docs] Start working on DocC support
2022-10-28 12:34:14 -07:00
Karoy Lorentey
bef610feb8
Merge pull request #224 from lorentey/finalize-PersistentCollections
...
Finalize persistent collections API
2022-10-28 12:32:57 -07:00
Karoy Lorentey
a9fd8af830
Merge pull request #225 from lorentey/fix-custom-mirrors
...
[OrderedSet, BitSet] Fix custom mirror display style
2022-10-28 12:20:49 -07:00
Karoy Lorentey
98d62d236b
[PersistentDictionary] More keys diffing APIs; additional documentation & testing
2022-10-28 12:19:08 -07:00
Karoy Lorentey
207029a613
[OrderedSet] Improve Sequence initializer
2022-10-27 18:32:06 -07:00
Karoy Lorentey
2dae70dba7
[OrderedSet, BitSet] Fix display style of custom mirror
2022-10-27 18:29:32 -07:00
Karoy Lorentey
18a01247a3
[PersistentDictionary] Add missing documentation comments
2022-10-27 18:08:27 -07:00
Karoy Lorentey
57554c65c2
[PersistentDictionary] Add an argument label for init(keys:valueGenerator:)
2022-10-27 18:08:27 -07:00
Karoy Lorentey
6dd3756609
[PersistentDictionary] Remove init(uniqueKeys:values:)
...
This initializer was interesting for OrderedDictionary, where it made
for more efficient initialization of storage, but it’s less useful for
other dictionary types.
2022-10-27 18:08:27 -07:00
Karoy Lorentey
8a1b16229b
[PersistentDictionary] Add initializer taking Self
2022-10-27 18:08:27 -07:00
Karoy Lorentey
1e1decfa6e
[PersistentCollections] Tweak DocC docs
2022-10-27 18:08:27 -07:00
Karoy Lorentey
d8e8f5cc19
[PersistentDictionary] Tweak docs
2022-10-27 18:08:27 -07:00
Karoy Lorentey
16687d78af
[PersistentSet] Add more tests
2022-10-27 18:08:27 -07:00
Karoy Lorentey
1d2a52779c
[PersistentSet] Add missing docs
2022-10-27 18:08:27 -07:00
Karoy Lorentey
84356e58c7
[PersistentCollection] Back out BidirectionalCollection conformance
...
BidirectionalCollection has the connotation that the ordering
of elements is meaningful, which isn’t the case for PersistentSet
and PersistentDictionary.
2022-10-27 18:08:27 -07:00
Karoy Lorentey
82b7a53960
[PersistentCollections] Categorize member APIs
2022-10-27 18:08:27 -07:00
Karoy Lorentey
3d807118ba
[PersistentCollections] Start working on DocC support
2022-10-27 18:08:27 -07:00
Karoy Lorentey
4fcb37f6ac
[_CollectionsUtilities] Adjust DictionaryAPIChecker
2022-10-21 19:49:20 -07:00
Karoy Lorentey
e3cc498060
[BitSet.Counted] Review, test, fix, and document binary set operations & predicates
2022-10-21 19:49:14 -07:00
Karoy Lorentey
1355d478af
[BitSet] Review, test, extend, and document binary set operations
2022-10-21 19:49:07 -07:00
Karoy Lorentey
0914e6f546
[OrderedSet] More test coverage for set operations; clarify docs
2022-10-21 18:24:08 -07:00
Karoy Lorentey
3a07b859e0
[OrderedSet] Split SetAlgebra binary operations into individual files
2022-10-21 18:24:08 -07:00
Karoy Lorentey
648aaa7f56
[PersistentSet] Review, test, fix, and document binary set operations
2022-10-21 18:24:08 -07:00
Karoy Lorentey
ab750075a2
[PersistentCollections] Add missing Custom[Debug]StringConvertable conformances, review existing ones
...
Add `Custom[Debug]StringConformance` conformances on:
- `PersistentDictionary.Keys`
- `PersistentDictionary.Values`
- `PersistentDictionary.Index`
- `PersistentSet.Index`
2022-10-20 17:14:52 -07:00
Karoy Lorentey
9cd030f21e
[BitSet] Add missing Custom[Debug]StringConvertable conformances, review existing ones
...
Add `Custom[Debug]StringConvertible` conformance on `BitSet.Index`.
2022-10-20 17:14:52 -07:00
Karoy Lorentey
c12b454da1
[Heap] Add missing Custom[Debug]StringConvertable conformances, review existing ones
...
Add `Custom[Debug]StringConvertible` conformance on `Heap`.
2022-10-20 17:14:52 -07:00
Karoy Lorentey
7143421800
[OrderedCollections] Add missing Custom[Debug]StringConvertable conformances, review existing ones
...
Add `Custom[Debug]StringConvertible` conformance on:
- `OrderedDictionary.Values`
- `OrderedDictionary.Elements.Subsequence`
- `OrderedSet.SubSequence`
2022-10-20 17:14:52 -07:00
Karoy Lorentey
5783b82d72
[PersistentCollections] Fix building with library stability enabled
...
Building this package with library stability enabled
is entirely unsupported, but let’s add a few @frozen
attributes to fix such builds anyway.
This package is explicitly not ABI stable; the @frozen
attribute does not mean a guarantee to leave
layout unchanged in future revisions.
2022-10-19 19:33:33 -07:00
Saleem Abdulrasool
67fdff5a25
Update CMakeLists.txt
...
Remove missing file. Thanks to @stevenbrix for identifying this!
(cherry picked from commit 5e0a0149a4 )
2022-10-19 17:58:47 -07:00
Karoy Lorentey
56be3ae3fd
[PersistentSet] Adjust code after merge
2022-10-19 17:58:47 -07:00
Karoy Lorentey
25fd503fac
[PersistentCollections] Fix up code added since c73a8caa originally landed
...
(cherry picked from commit 4c842df1b8 )
2022-10-19 17:58:47 -07:00
Karoy Lorentey
bceadab267
[PersistentCollections] Reduce popcount usages where possible
...
# Conflicts:
# Sources/PersistentCollections/Node/_Node+Primitive Removals.swift
(cherry picked from commit e153ebf798 )
2022-10-19 17:58:46 -07:00
Karoy Lorentey
6b516b72fb
[PersistentCollections] Slightly more readable index descriptions
...
(cherry picked from commit 785caa4a55 )
2022-10-19 17:58:46 -07:00
Karoy Lorentey
2e276ba42b
[PersistentCollections] Clean up _Node.Builder & removals
...
This sanitizes the semantics of _Node.Builder, removing
the (unneccessary) need to pass around hash paths.
It also slightly refactors removal operations, but stops short of
implementing node shrinking.
# Conflicts:
# Sources/PersistentCollections/Node/_Node+Builder.swift
# Sources/PersistentCollections/Node/_Node+Initializers.swift
# Sources/PersistentCollections/Node/_Node+Structural intersection.swift
# Sources/PersistentCollections/Node/_Node+Structural subtracting.swift
# Sources/PersistentCollections/Node/_Node+Subtree Modify.swift
# Sources/PersistentCollections/Node/_Node+Subtree Removals.swift
# Sources/PersistentCollections/PersistentDictionary/PersistentDictionary+Initializers.swift
# Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra Initializers.swift
# Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra intersection.swift
# Sources/PersistentCollections/PersistentSet/PersistentSet+SetAlgebra subtracting.swift
(cherry picked from commit c73a8caad1 )
2022-10-19 17:58:46 -07:00
Karoy Lorentey
3c6cb8cd56
Update CMake configuration
2022-10-19 17:35:13 -07:00
Karoy Lorentey
381cf5d17e
Merge branch 'release/1.0' into release/1.1
2022-10-19 15:50:34 -07:00
Karoy Lorentey
734730d724
[OrderedSet] Split SetAlgebra predicates into individual files
...
This is to match the layout of all the other
SetAlgebra implementations in this package.
2022-10-19 15:20:30 -07:00
Karoy Lorentey
5dfd51238c
[OrderedSet] Review, test, fix, and document set relation predicates
2022-10-19 15:20:30 -07:00
Karoy Lorentey
8ce8a6bc86
[PersistentSet] Review, test, fix, and document set relation predicates
2022-10-19 15:20:17 -07:00
Karoy Lorentey
f843bd40bf
[PersistentSet] Add update(_:at:)
2022-10-19 15:20:17 -07:00
Karoy Lorentey
001df8e325
[BitSet] Review, test, fix, and document set relation predicates
...
- Update documentation
- Improve performance where possible
- Add missing test coverage where needed
2022-10-19 15:20:17 -07:00
Karoy Lorentey
291623d391
[BitSet] Implement isEqual(to:) family of functions
2022-10-19 01:40:06 -07:00
Karoy Lorentey
86d429604c
[BitSet] Doc updates
2022-10-19 01:40:06 -07:00
Karoy Lorentey
51a1554f89
Introduce _UniqueCollection & _SortedCollection
...
These marker-like protocols will allow certain
generic operations to get a performance boost
if the passed-in value happens to be guaranteed
to contain unique elements or to be sorted.
Also, review API checker protocols for Sets and
sorted collections and adjust things as needed.
BitSet gains custom implementations for min()
and max() as part of these improvements.
2022-10-19 01:40:06 -07:00
Karoy Lorentey
f76630db8e
[Internals] Add missing internal checking predicates & docs for all
2022-10-18 22:13:19 -07:00
Karoy Lorentey
2b4ec22949
[OrderedSet] Small doc updates/fixes
2022-10-18 22:03:29 -07:00
Karoy Lorentey
5b5651957b
[PersistentSet] Doc updates
2022-10-18 21:57:46 -07:00
Karoy Lorentey
02ea4e8492
[_CollectionsTestSupport] Move StringConvertibleValue under Utilities
2022-10-18 21:44:24 -07:00
Karoy Lorentey
fc8092d044
[Heap] Small preparation for improving insert(contentsOf:)
2022-10-14 10:34:58 -07:00
Karoy Lorentey
2e9447fb1c
[_CollectionsTestSupport] Richer support for combinatorial testing
2022-10-13 15:45:08 -07:00