Aashish
fc11462e69
Fix ContainerIterator skip bounds
2026-11-09 21:42:36 +05:45
Karoy Lorentey
669eb09cea
Use Iterable from the Standard Library, replacing the local definition
2026-07-27 13:32:46 -07:00
Karoy Lorentey
232dc7f9ee
Add second parameter to Container.makeBorrowingIterator(from:to:)
2026-07-21 15:21:45 -07:00
Karoy Lorentey
27fe58c42c
Beef up ContainerIterator’s provided algorithms
2026-07-17 11:51:20 -07:00
Karoy Lorentey
d0b4c4c215
IterableIterator_ → BorrowingIterator_
2026-07-07 14:21:53 -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
72c0dd258d
IterableIteratorProtocol_ → BorrowingIteratorProtocol_
2026-07-07 14:20:26 -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
Nate Cook
c039a18a0e
Switch to using stdlib Ref and UniqueBox
2026-06-17 14:27:29 -07:00
Nate Cook
4bda43f4a9
Renaming BorrowingSequence_ to Iterable_
2026-06-17 14:27:29 -07:00
Karoy Lorentey
a6fd64697a
[ContainersPreview] Borrow ⟹ Ref
...
Also update the type’s public API surface to reflect SE-0519, leaving deprecated aliases for the old names.
2026-05-06 18:00:13 -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
1c95e19aeb
[ContainersPreview] Don’t require Container.Index to conform to Comparable
...
This slows down the default implementations of `distance(from:to:)` and `index(_:offsetBy:limitedBy:)`, but it allows linked lists to conform to `Container`. The trade off seems fair.
While we’re here, flesh out the `BidirectionalContainer` refinements a little, and add `Container.isEmpty` and `._custom[Last]IndexOfEquatableElement(_:)`.
This code is still untested.
2026-04-16 18:04:37 -07:00
Karoy Lorentey
495d96d27d
[ContainersPreview] Better illuminate the nextSpan problem on ContainerIterator
2026-04-03 09:01:48 -07:00
Karoy Lorentey
597b7a7dd2
Revert most of the availability constraints from 419e2f and 4c0482 🎉
2026-03-27 11:25:43 -07:00
Nate Cook
efdc1bbd96
Remove BorrowingSequence experimental feature flag
...
This prevents accidental usage of the experimental stdlib feature,
where the library's implementation is intended instead.
2026-03-27 10:56:44 -05:00
Nate Cook
a99a015934
Disambiguate ContainersPreview and stdlib
...
Adds trailing underscores to the BorrowingSequence protocols and
requirements, in order to allow both parallel conformances and
the ability to evolve the requirements in this package.
2026-03-27 07:41:32 -05: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