Karoy Lorentey
e01391e562
[BitArray] Fix logic error in toggleAll()
...
D’oh — lucky the test coverage caught this; unlucky that the test wasn’t deterministic, and the chances of this occurring were quite low.
2024-01-31 19:34:36 -08:00
Karoy Lorentey
e27e422927
[Deque] Update copyright notices
2024-01-31 19:34:36 -08:00
Karoy Lorentey
04ee7c0b1d
[Deque] Modernize generic declaration syntax
2024-01-31 19:34:34 -08:00
Karoy Lorentey
3bc1c3be46
[BitCollections] Update copyright dates
2024-01-30 18:09:37 -08:00
Karoy Lorentey
c6018a29f0
Update & regenerate DocC extensions
2024-01-30 18:08:52 -08:00
Karoy Lorentey
db3bd17b40
[BitCollections] Adopt some instead of classic generic where possible
2024-01-30 18:07:00 -08:00
Karoy Lorentey
ad4ecc3d0f
Port _specialize(_:for:) from the stdlib
2024-01-30 18:01:45 -08:00
Karoy Lorentey
5648e91ffb
[BitSet] Call _arrayDescription instead of duplicating it
2024-01-30 17:59:47 -08:00
Karoy Lorentey
0da60c2075
[BitArray] Enclose description in angle brackets
...
This prevents producing an empty string for the `description` of an empty bit set, and thus prevents us from having to include a diverging `debugDescription`.
2024-01-30 17:58:52 -08:00
Karoy Lorentey
50f6307501
[Heap] Also add an init(minimumCapacity:) initializer
2024-01-29 17:57:14 -08:00
Karoy Lorentey
9022cbd153
[Heap] Add reserveCapacity
2024-01-29 17:51:00 -08:00
Karoy Lorentey
a52457d6fc
[Heap] Mark removeMin/removeMax @discardableResult
2024-01-29 17:50:44 -08:00
Karoy Lorentey
04aab35232
Merge pull request #353 from lorentey/disable-bitwise-ops-on-bitarray
...
[BitArray] Disable bitwise operators for now
2024-01-29 17:43:36 -08:00
Karoy Lorentey
7c9df00706
Merge pull request #328 from lorentey/heap-minmax-properties
...
[Heap] Convert min() and max() to properties
2024-01-29 17:42:06 -08:00
Karoy Lorentey
8dd4e591b3
[BitArray] Update DocC following bitwise op adjustments
2024-01-29 17:04:27 -08:00
Karoy Lorentey
de8ba5d7ad
[BitArray] Disable bitwise operators for now
...
The current family of operations is far too restrictive, and the generalization is a topic of ongoing investigation. In particular, the operator syntax seems unlikely to survive when we want to support operations over slices.
Don’t ship BitArray with API that we’ll potentially regret; instead, just leave these off for now.
2024-01-29 17:01:00 -08:00
Rick van Voorden
0e4014c468
tree dictionary keys equality
2024-01-28 13:49:26 -08:00
Filip Klembara
258df07928
Replace less then with less then or equal in removeLast(_:) and removeFirst (_BTree)
2024-01-04 09:05:27 +01:00
Karoy Lorentey
1a0ac8c06c
Merge branch 'release/1.0' into release/1.1
...
# Conflicts:
# Sources/DequeModule/CMakeLists.txt
# Sources/DequeModule/Deque+Collection.swift
# Sources/DequeModule/Deque+Sendable.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.SubSequence.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Sendable.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Sequence.swift
# Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Values.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+Sendable.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+UnorderedView.swift
# Sources/OrderedCollections/OrderedSet/OrderedSet+UnstableInternals.swift
2023-12-21 15:17:15 -08:00
Karoy Lorentey
cdcf9e606a
Update CMake configuration
2023-12-19 17:45:02 -08:00
Karoy Lorentey
9d4a1e5ad2
[OrderedSet] Don’t try to conform to Sendable below Swift 5.5
2023-12-19 17:10:37 -08:00
Karoy Lorentey
03d60bed63
Merge pull request #343 from lorentey/sendable-1.0
...
[1.0] Backport Sendable conformances on all public types
2023-12-18 18:43:30 -05:00
Karoy Lorentey
8bfcaddd5f
[1.0] Update copyright dates
2023-12-18 15:35:56 -08:00
Karoy Lorentey
7d43c07a71
Backport Sendable conformances on all public types
...
Resolves #317
2023-12-18 15:25:38 -08:00
Karoy Lorentey
40e737cdaf
[OrderedDictionary] Fix usage of deprecated API in index(forKey:) docs
...
Resolves #289 .
2023-12-18 15:00:55 -08:00
Karoy Lorentey
1016901f5e
Merge pull request #341 from vanvoorden/vanvoorden/deque-equality
...
[Deque] check deque equality with buffer identity
2023-12-12 21:54:46 -05:00
Karoy Lorentey
8b8a14f0e1
Merge pull request #340 from vanvoorden/vanvoorden/ordered-set-equality
...
[OrderedSet] forward ordered set equality to elements property
2023-12-12 21:54:30 -05:00
Rick van Voorden
2122327782
deque storage equality helper
2023-12-12 14:16:21 -08:00
Rick van Voorden
e37e505da5
ordered set fix compiler error
2023-12-12 12:33:38 -08:00
Rick van Voorden and Karoy Lorentey
9430147598
ordered set bounds equality check
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2023-12-12 12:27:48 -08:00
Rick van Voorden and Karoy Lorentey
5fa8e440a2
remove extra test equality helper function
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2023-12-12 11:18:18 -08:00
Rick van Voorden
22306e061a
check deque equality with buffer identity
2023-12-11 19:30:34 -08:00
Rick van Voorden
e2b033c8ea
forward ordered set subsequence equality to elements property
2023-12-11 15:24:07 -08:00
Rick van Voorden
3caf13b4f8
forward ordered set equality to elements property
2023-12-08 20:32:31 -08:00
Rick van Voorden
e42fb868b7
forward ordered dictionary values equality to values property
2023-12-08 17:39:25 -08:00
Karoy Lorentey
cd03e5b471
Merge branch 'release/1.1'
...
# Conflicts:
# Sources/BitCollections/CMakeLists.txt
# Sources/HashTreeCollections/CMakeLists.txt
2023-11-27 12:02:32 -08:00
Saleem Abdulrasool
3bd3d3ba28
build: update the build rules for adjusted tree layout
...
Update the file list and locations to allow building with CMake once
again.
2023-11-26 10:10:19 -08:00
Karoy Lorentey
53831b3a22
[Heap] Update docs
2023-11-14 19:10:35 -08:00
Karoy Lorentey
e10396bb20
[Heap] Convert min() and max() to properties
2023-11-14 18:52:27 -08:00
Karoy Lorentey
33e2e610f5
Merge branch 'release/1.0' into release/1.1
...
# Conflicts:
# Tests/_CollectionsTestSupport/MinimalTypes/MinimalDecoder.swift
2023-11-14 18:06:24 -08:00
Karoy Lorentey
c44d56f4c8
Merge pull request #327 from lorentey/heap-better-bulk-insert
...
[Heap] insert(contentsOf:) Switch to Floyd’s if we’re inserting too many items
2023-11-14 17:56:22 -08:00
Karoy Lorentey and Stephen Canon
19ec155f60
Update Sources/HeapModule/Heap.swift
...
Co-authored-by: Stephen Canon <stephentyrone@gmail.com >
2023-11-14 11:06:05 -08:00
Karoy Lorentey
069dd4e5df
[Heap] insert(contentsOf:) Switch to Floyd’s if we’re inserting too many items
2023-11-13 21:28:24 -08:00
Karoy Lorentey
7686af1555
[Heap] Improve type-level doc comment
2023-11-13 18:33:43 -08:00
kati-kms
b72a6cfd93
Fix typos: OrderedSet.swift DocC
2023-11-10 15:38:16 +09:00
Karoy Lorentey
33f23b6a06
[RopeModule] Remove unnecessary typealiases
...
These render the emitted .swiftinterface unusable when the module is built with library evolution enabled.
2023-10-18 17:57:00 -07:00
Karoy Lorentey
bd1a622735
[CMake, Xcode] Update buid configurations
2023-10-18 15:54:07 -07:00
Karoy Lorentey
9436aab34c
[HashTreeCollections] _StorageHeader.swift → _HashNodeHeader.swift
2023-10-18 15:52:05 -07:00
Karoy Lorentey
de2c8a9086
[RopeModule] Allow building with library evolution enabled
...
rdar://114659667
2023-10-18 14:22:12 -07:00
Karoy Lorentey
bf742617f3
[test] Fix typename shadowing warning in Swift 5.9
2023-10-02 21:09:11 -07:00