Karoy Lorentey
3e306a23f1
Merge pull request #550 from AZero13/typo
...
Typo: symmetric difference should be the xor, not intersection
2025-12-17 16:16:09 -08:00
AZero13
174b3135c3
Compare self.value to other, not itself.
2025-12-06 13:13:09 -05:00
AZero13
3534960194
Typo: symmetric difference should be the xor, not intersection
...
Otherwise it is the same as the intersection.
2025-12-06 12:50:59 -05:00
Karoy Lorentey
a09d7cdf45
Drop support for the Swift 5.9.* toolchains
2025-05-16 13:05:36 -07:00
3405691582 and Karoy Lorentey
29cdb59bf9
Update Sources/HashTreeCollections/HashNode/_HashTreeStatistics.swift
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2025-05-16 00:21:38 -07:00
3405691582
8bbbe287c3
ManagedBuffer.capacity is unavailable on OpenBSD.
...
ManagedBuffer.capacity depends on malloc introspection (e.g.,
`malloc_size`), which is not available on this platform -- and is thus
marked as such.
Here, _HashNode.Storage is a ManagedBuffer. Thankfully, the uses of
.capacity are fairly limited: one for statistic purposes, which we just
completely omit on the platform, and the other, setting a minimum
capacity in the header by the buffer's .capacity; the alternative being
setting that minimum capacity directly.
2025-05-16 00:21:24 -07:00
Karoy Lorentey
755c06dd88
Adopt _pointerBitWidth
2024-09-25 14:17:32 -07:00
Karoy Lorentey
28f66a0ce5
Mark empty singletons as nonisolated(unsafe)
2024-09-25 14:06:31 -07:00
Karoy Lorentey
35d5746117
Rename _CollectionsUtilities to InternalCollectionsUtilities
...
We are forced to do this due to an Xcode issue (#364 ) with underscored module names.
This module remains unstable, despite the removal of the underscore. Directly importing it from outside the package remains unsupported. This module and/or its entire contents may go away or change in incompatible ways in any future swift-collections release.
2024-05-29 14:00:13 -07:00
Dimitris Apostolou
7539583245
Fix typos
...
# Conflicts:
# Sources/SortedCollections/BTree/_BTree+BidirectionalCollection.swift
# Sources/SortedCollections/BTree/_BTree+UnsafeCursor.swift
# Sources/SortedCollections/BTree/_BTree.Builder.swift
# Sources/SortedCollections/BTree/_BTree.swift
# Sources/SortedCollections/BTree/_Node.Splinter.swift
# Sources/SortedCollections/BTree/_Node.Storage.swift
# Sources/SortedCollections/BTree/_Node.UnsafeHandle+Insertion.swift
# Sources/SortedCollections/BTree/_Node.swift
# Tests/SortedCollectionsTests/BTree/Node+Join Tests.swift
2024-02-06 15:52:26 -08:00
Karoy Lorentey
c33444df6f
[HashTreeCollections] Update copyright notices
2024-02-02 16:20:20 -08:00
Karoy Lorentey
d1e52208a3
[HashTreeCollections] Modernize declaration syntax of generic functions; adopt _specialize(_:for:)
2024-02-02 16:20:19 -08:00
Karoy Lorentey
9436aab34c
[HashTreeCollections] _StorageHeader.swift → _HashNodeHeader.swift
2023-10-18 15:52:05 -07:00
Karoy Lorentey
454c84b5e4
Make most of Rope inlinable
2023-04-10 16:56:30 -07:00
Karoy Lorentey
cbab9e3737
Introduce COLLECTIONS_SINGLE_MODULE condition
2023-03-21 18:42:33 -07:00
Karoy Lorentey
424c8ece98
HashTreeCollections: Qualify internal type names with “Hash”
...
This makes them unique throughout the package, allowing this code to be built as a single, huge module.
2023-03-21 16:37:22 -07:00