-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: conform pagemap extension to sequence protocol #321
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look reasonable and CI passes, so LGTM, but as I don't have enough experience I'll let @aallam do the actual approval
let elements = (self.startIndex..<self.endIndex).map { self[$0] } | ||
return IndexingIterator(_elements: elements) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this creates a copy of the list elements, which should work. If performance issues arise, it might be wise to consider an alternative approach.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, I see. I believe we can commit to it and monitor for customer feedback as you mentioned. Thanks for your review 🙇 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary
This PR updates a PageMap extension so that it conforms more closely to the Sequence protocol, which seems more restrictive with Xcode 16.
This also updates the CI to run tests on Xcode 16 and fixes a number of failing jobs.
Result
Fixes #318