Karoy Lorentey
2e10584446
Add a default implementation for MutableContainer.swapAt (for copyable elements)
2026-07-28 19:43:07 -07:00
Karoy Lorentey
232dc7f9ee
Add second parameter to Container.makeBorrowingIterator(from:to:)
2026-07-21 15:21:45 -07:00
Karoy Lorentey
e75f053e46
Update MutableContainer
...
- Add `nextMutableSpan(after:)` and `nextMutableSpan(after:maxCount:limitedBy)`, replacing `nextMutableSpan(after:maxCount:)` as the core access primitives
- Add `previousMutableSpan` default algorithms on bidirectional mutable containers
2026-07-20 15:44:35 -07:00
Karoy Lorentey
ff695132ed
Bump availability of Iterable_ and Container protocols to SwiftStdlib 6.4
...
This is preparing for switching over to the stdlib’s definition of `protocol Iterable`, assuming it will land with macOS 27/iOS 27 etc availability; `Container` is refining `Iterable`, so it needs matching availability.
If `Iterable` won’t ship in Swift 6.4, then we’ll need to bump this again.
2026-07-07 14:22:45 -07:00
Karoy Lorentey
bb0dc189ef
maximumCount → maxCount
...
While we’re here, adjust `RigidSet.insert(maximumCount:initializingWith:)` and similar APIs to be consistent with RangeReplaceableContainer’s methods.
2026-07-07 14:21:53 -07:00
Karoy Lorentey
3ba8d70ec3
Review and update container protocols and conformances
...
- @inlinable → @_alwaysEmitIntoClient for now, to avoid temporary ABI issues
- Review RangeReplaceableContainer algorithms; add missing ones:
- New requirements: `removeFirst()`, `removeFirst(_:)`, `_customRemoveLast()`, `_customRemoveLast(_:) (with default implementations)
- `func removeAll()`
- `func removeLast()`, `func removeLast(_:)`, `func popLast()` when self is also bidirectional
- Review RigidArray, UniqueArray algorithms; remove ones needlessly duplicating functionality already provided by RRC. Try not to break source compatibility.
2026-07-07 14:18:09 -07:00
Karoy Lorentey
250af87308
[ContainersPreview] Redeclare Container requirements in refining protocols
...
Use `override`/`@_nonoverride` to help associated type inference and to allow diverging implementations of select requirements in BidirectionalContainer, RandomAccessContainer, and MutableContainer.
2026-06-23 16:55:53 -07:00
Karoy Lorentey
e8b09ade25
Add subscript requirements to [Mutable]Container with borrow/mutate accessors
2026-06-22 20:10:22 -07:00
Franz Busch
3c373b900c
Use the defines from traits directly
...
Package traits already pass defines with their trait name when building. Instead of adding our own conditional defines based on the traits we can use the trait provided defines directly. I observed that various tooling behaves better with the trait provided defines.
2026-05-06 07:41:02 -07:00
Karoy Lorentey
597b7a7dd2
Revert most of the availability constraints from 419e2f and 4c0482 🎉
2026-03-27 11:25:43 -07:00
Karoy Lorentey
419e2f7df2
[ContainersPreview] Exhibit A in the case against prototyping things in the stdlib 😞
2026-03-26 17:14:45 -07:00
Karoy Lorentey
eb708a9ba5
[ContainersPreview] Audit some protocol extensions for SuppressedAssociatedTypesWithDefaults
2026-03-26 16:05:07 -07:00
Karoy Lorentey
70a25f1f69
[ContainersPreview] Bump required toolchain to 6.4 for new protocols
2026-03-26 14:51:08 -07:00
Karoy Lorentey
121462fe19
[ContainersPreview] Add some implementations of .filter
2026-03-16 15:04:30 -07:00
Karoy Lorentey
c4760ec21a
[ContainersPreview] Flesh out container protocols a little more; add algorithms
...
(This is all untested, unproven code)
2026-03-13 10:30:49 -07:00