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
3e505b97bb
Merge pull request #575 from lorentey/validate-maximumCount
...
[RigidArray, RigidDeque].nextSpan: Validate `maximumCount`
2026-02-16 17:21:24 -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
5a4ee8be66
Update docs for Container.nextSpan(after:maximumCount:)
...
Oops, the docs did not explain `maximumCount`.
2026-02-16 15:49:33 -08:00
Karoy Lorentey
99da8a72e0
[BasicContainers] RigidArray, UniqueArray: Add formIndex(before:)
2026-02-03 15:10:11 -08:00
Karoy Lorentey
030f751515
[BasicContainers] RigidArray, UniqueArray: Fill out missing indexing APIs
2026-02-03 14:06:03 -08:00
Karoy Lorentey
0c376aceb6
[BasicContainers] Move array implementations into subdirectories
...
(This sets the stage for more data structures in BasicContainers)
2026-02-03 13:05:03 -08:00