Nate Cook
54ca53612f
Include notes about index mutation in span(after/before:)
...
The indexes passed to span(after:) and friends on UniqueArray
and RigidArray are modified before return. This adds notes
about the updated values to the method documentation, along
with a few other minor formatting changes (dropping smart
quotes, single-sentence abstracts).
2026-03-02 16:38:48 -08:00
Karoy Lorentey
6e496a9512
[DequeModule] Review bulk insertion/append/prepend/replace operations
2026-02-27 18:02:06 -08:00
Karoy Lorentey
50978111dc
Merge pull request #573 from lorentey/hashing-with-ownership
...
Ownership-aware Set and Dictionary variants
2026-02-27 15:55:13 -08:00
Karoy Lorentey
4452b1c960
[ContainersPreview] Mark ProducerError as a primary associated type of Producer
2026-02-24 16:41:31 -08:00
Karoy Lorentey
a14f9eb61c
[BasicContainers] Add missing imports of ContainersPreview
2026-02-23 13:56:38 -08:00
Karoy Lorentey
3e505b97bb
Merge pull request #575 from lorentey/validate-maximumCount
...
[RigidArray, RigidDeque].nextSpan: Validate `maximumCount`
2026-02-16 17:21:24 -08:00
Karoy Lorentey
934ad786d2
Merge pull request #570 from lorentey/remove-outputspan-workaround
...
Remove workaround for bug in OutputSpan.wUMBP
2026-02-16 17:14:44 -08:00
Karoy Lorentey
621374557c
Array, Deque types: Introduce _checkItemIndex, _checkValidIndex, _checkValidBounds
2026-02-16 17:05:36 -08:00
Karoy Lorentey
ac7a8bf61b
[RigidArray, RigidDeque].nextSpan: Validate maximumCount
...
`nextSpan(after:,maximumCount:)` failed to validate that `maximumCount > 0`, potentially allowing out-of-bounds access.
2026-02-16 15:54:49 -08:00
Karoy Lorentey
b21316ea08
[DequeModule] Add some top-level RigidDeque/UniqueDeque docs
2026-02-09 17:28:31 -08:00
Karoy Lorentey
8ef702c8a5
Remove workaround for OutputSpan.wUMBP bug
2026-02-05 17:07:03 -08:00
Karoy Lorentey
35e09984f5
[doc] Add missing colon after “Parameters”
2026-02-05 16:48:05 -08:00
Karoy Lorentey
653a60b8e7
replaceSubrange(_:...) → replace(removing:...)
2026-02-05 14:56:51 -08:00
Karoy Lorentey
6c1d4ab9c8
Update Xcode and CMake build configurations
2026-02-04 23:24:11 -08:00
Karoy Lorentey
e4a874b67a
Rigid & Unique types: Add Equatable, Hashable, Custom[Debug]StringConvertible operations
...
Currently these are all conditional on copyable elements, and the types cannot conform to the actual protocols yet.
2026-02-04 23:24:08 -08:00
Karoy Lorentey
84e9932478
Rigid/Unique types: Review consumption methods and unify their shapes
...
Drain-returning variants will need to be added on RigidArray/UniqueArray later.
2026-02-04 17:32:41 -08:00
Karoy Lorentey
06f2ec073d
Rigid, Unique types: Rework OutputSpan-based append/prepend/insert/replaceSubrange primitives
2026-02-04 17:29:43 -08:00
Karoy Lorentey
9503f8fe57
Improve consistency of precondition failure messages
...
More uniform message strings should feel better, and they should ever so slightly reduce code size.
2026-02-04 10:27:17 -08:00
Karoy Lorentey
b768d22393
[BasicContainers] RigidArray, UniqueArray: “precisely once” → “at most once”
...
Loosen guarantees about how many times closure arguments are getting called, so that e.g. insertions of zero items do not necessarily need to call their callback with an empty OutputSpan.
(For these array types we can reinstate the guarantee later, if it turns out to be important/useful. However, the generalized primitives will need to allow their callbacks to get called an arbitrary number of times, and it seems useful to establish that (at least partially) with these simple array types too.)
2026-02-04 10:09:00 -08:00
Karoy Lorentey
de9a98d7aa
[DequeModule] RigidDeque, UniqueDeque: Make clone() methods public
2026-02-03 13:21:48 -08:00
Karoy Lorentey
80b8a6fb80
Use the OutputSpan workaround everywhere
2026-01-29 15:35:35 -08:00
Karoy Lorentey
14da0b618d
Fix UniqueDeque with COLLECTIONS_INTERNAL_CHECKS
2026-01-26 12:31:37 -08:00
Karoy Lorentey
4c9a0da7f1
Update CMake configuration
2026-01-26 12:31:36 -08:00
Karoy Lorentey
3a1498781a
Fix support for older compilers
2026-01-26 11:18:59 -08:00
Karoy Lorentey
f496dcfb61
Flesh out UniqueDeque operations
2026-01-26 11:18:59 -08:00
Karoy Lorentey
76fa120c27
More RigidDeque testing
2026-01-26 11:18:57 -08:00
Karoy Lorentey
29b31e5e0d
RigidDeque: Add test coverage; fix issues
2026-01-25 16:42:41 -08:00
Karoy Lorentey
70a36c2c47
RigidDeque: Another iterative design pass on deque operations
...
- Adopt and embrace Drain and Producer to simplify moving data in and out of deques.
- Fully generalized core range replacement primitive using higher-order functions based around InputSpan and OutputSpan
2026-01-25 16:42:40 -08:00
Karoy Lorentey
7b5221ea24
RigidDeque: Add Container conformance and allow copying from Containers
2026-01-20 10:51:17 -08:00
Karoy Lorentey
d1d757e425
[RigidDeque] Implement replacement operations
2026-01-08 17:25:21 -08:00
Karoy Lorentey
e84db1974d
[RigidDeque] Update removals
2026-01-08 13:11:52 -08:00
Karoy Lorentey
5943e6eb5c
[RigidDeque] Flesh out insertions
2026-01-07 17:46:25 -08:00
Karoy Lorentey
16aac1913c
[RigidDeque] Clean up initializers
2026-01-06 15:49:14 -08:00
Karoy Lorentey
54494e1c98
[RigidDeque] Flesh out prepend methods
2026-01-06 15:14:07 -08:00
Karoy Lorentey
722ed6ae90
[RigidDeque] Flesh out append methods
2026-01-05 18:29:31 -08:00
Karoy Lorentey
4e93bbdb8d
[DequeModule] Move Deque sources to a subdirectory
2026-01-05 16:29:01 -08:00
Nate Cook
ec89f90bd0
Expand RigidDeque test coverage
2025-12-15 10:39:46 -06:00
Nate Cook
8320ac8215
Add additional API and tests
2025-11-02 14:59:55 -06:00
Alejandro Alonso
3975774393
wip
2025-10-23 15:05:12 -07:00
Alejandro Alonso
de68a98a82
wip
2025-10-16 14:45:22 -07:00
Tobias
8db0c6eb75
fix typo in init docs for Deque.swift
2025-08-07 10:29:59 +02:00
Tony Parker
c883a1729a
Add support for embedded Swift mode
...
Remove calls to `debugPrint` (which does not exist), and ifdef out support for `Codable` and `Reflection`.
2025-07-17 16:36:56 -07:00
Karoy Lorentey
a09d7cdf45
Drop support for the Swift 5.9.* toolchains
2025-05-16 13:05:36 -07:00
Karoy Lorentey
28f66a0ce5
Mark empty singletons as nonisolated(unsafe)
2024-09-25 14:06:31 -07:00
Guillaume Lessard
0f138be402
remove references to a deleted file
2024-08-19 18:17:03 -07:00
Guillaume Lessard
73f45ac311
[concurrency] conform Deque.Iterator uncheckedly to Sendable
2024-08-19 18:03:24 -07:00
quokkakyu
6b8276e252
add 'final' keyword to class
2024-07-15 09:27:27 +09:00
Jeremy Schonfeld
3e120b48bb
[CMake] Reduce path lengths in single-module build ( #392 )
...
* Eliminate relative paths from the cmake single-module build
* Attempt to reduce length of paths in single module build
2024-06-26 08:39:11 -07:00
Jeremy Schonfeld
ee97538f5b
Add Single Module Build Mode to CMake for Foundation ( #385 )
...
* Add new single-module and foundation-toolchain-module modes to CMake build
* Fix allowable client flag syntax
2024-06-03 16:15:50 -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