-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Bound lookup in arrays with duplicate #4842
Bound lookup in arrays with duplicate #4842
Conversation
🦋 Changeset detectedLatest commit: 7c9f21b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Will continue reviewing
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.
LGTM
This PR does the following:
Array.findUpperBound
which does not match the "upper bound" function in other standard librariesArray.lowerBound
andArray.upperBound
that perform lower and upper bound lookup in storage arrays (with support for duplicates).Array.lowerBoundMemory
andArray.upperBoundMemory
that perform lower and upper bound lookup in memory arrays (with support for duplicates).Fixes #4744
Fixes LIB-1182
Fixes LIB-1188
PR Checklist
npx changeset add
)