Commit Graph
985 Commits
Author SHA1 Message Date
Karoy Lorentey 3c99c84286 [Heap] Clean up description
- Don’t print the type name
- Include some information identifying the heap instance
2024-02-02 16:20:21 -08:00
Karoy Lorentey 37e66d0e49 [Heap] Modernize generic declaration syntax 2024-02-02 16:20:21 -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 a5117b49f4 [Collections] Add a note why _RopeModule isn’t reexported 2024-01-31 19:34:37 -08:00
Karoy Lorentey 55db6d936c Remove workaround for SR-14663
Our updated minimum toolchain requirement is Swift 5.7, and the stdlib in that version has the fix included.

We’ve seen reports that the bug may not deploy back in all cases to earlier OS releases, but it still seems worth trying to remove the workaround, as it has some undesirable runtime implications.
2024-01-31 19:34:37 -08:00
Karoy Lorentey d45ccb0028 [BitSet] Fix missing import 2024-01-31 19:34:37 -08:00
Karoy Lorentey a0da2df799 [BitArray] Update LosslessStringConvertible initializer to accept new description format 2024-01-31 19:34:36 -08:00
Karoy Lorentey ae641c3d5d [BitArray] Fix description implementation; update tests 2024-01-31 19:34:36 -08:00
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 ce8fbb6c5d [Package.swift] Add missing exclude for RopeModule’s CMakeLists 2024-01-30 18:07:33 -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 1c76be64fd Bump required Swift toolchain to 5.7 2024-01-30 17:56:58 -08:00
Karoy Lorentey 31de2765af Merge pull request #354 from lorentey/finalize-heap-api
[Heap] Final(?) Heap API adjustments for 1.1
2024-01-30 11:13:37 -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
Karoy Lorentey 2c4060f423 Merge pull request #348 from lorentey/merge.1.0→1.1
Merge release/1.0 to release/1.1
2024-01-04 14:20:36 -08: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 d029d9d39c Merge pull request #347 from lorentey/update-cmake
Update CMake configuration
1.0.6
2023-12-19 17:50:54 -08:00
Karoy Lorentey cdcf9e606a Update CMake configuration 2023-12-19 17:45:02 -08:00
Karoy Lorentey 0791ab90e2 Merge pull request #346 from lorentey/fix-sendable-on-old-swifts
OrderedSet: Fix sendable conformance on old swifts
2023-12-19 17:17:40 -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 771e7f4217 Merge pull request #342 from lorentey/fix-index-forKey-docs
[OrderedDictionary] Fix usage of deprecated API in index(forKey:) docs
2023-12-18 18:11:13 -05: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 VoordenandKaroy Lorentey 7c56de9fbe remove unneeded deque equality tests
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
2023-12-12 14:04:11 -08:00
Rick van VoordenandKaroy Lorentey c8d438d748 remove unneeded deque equality tests
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
2023-12-12 14:03:35 -08:00
Rick van Voorden 525bb545c4 clean up ordered set equality test 2023-12-12 14:00:00 -08:00
Rick van Voorden e37e505da5 ordered set fix compiler error 2023-12-12 12:33:38 -08:00
Rick van Voorden 00ccf9a1c0 remove ordered set print statements 2023-12-12 12:31:14 -08:00
Rick van Voorden 0031fc7e36 update ordered set subsequence tests 2023-12-12 12:30:14 -08:00
Rick van VoordenandKaroy 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 VoordenandKaroy Lorentey 88404c3ae8 test through ordered set subsequences
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
2023-12-12 11:38:24 -08:00