Assorted RigidArray/UniqueArray updates#569
Merged
lorentey merged 20 commits intoapple:mainfrom Feb 6, 2026
Merged
Conversation
(This sets the stage for more data structures in BasicContainers)
…zers into the same source file
…t 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.)
More uniform message strings should feel better, and they should ever so slightly reduce code size.
…placeSubrange primitives
Drain-returning variants will need to be added on RigidArray/UniqueArray later.
…vertible operations Currently these are all conditional on copyable elements, and the types cannot conform to the actual protocols yet.
c79d712 to
f29817c
Compare
f29817c to
e6d6731
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replaceSubrange(_:...)methods withreplace(removing:...).copy()/copy(capacity:)toclone()/clone(capacity:), deprecating the old entry points.Equatable/Hashable/Custom[Debug]StringConvertibleimplementations. Generalized conformances are pending the Swift 6.4 release.RigidArray.distance(from:to:). Fill out doc strings for index navigation methods.UniqueArrayindex navigation methods.Checklist