-
Notifications
You must be signed in to change notification settings - Fork 21
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
clarify interpretation of less and greater as before/after #461
base: master
Are you sure you want to change the base?
clarify interpretation of less and greater as before/after #461
Conversation
✅ Deploy Preview for grist-help-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
- __`ge`__: (greater than or equal to) find nearest record with sort values >= the given values | ||
- __`eq`__: (equal to) find nearest record with sort values == the given values | ||
- __`lt`__: (less than) find nearest (last) record with sort values < (before) the given values | ||
- __`le`__: (less than or equal to) find nearest record with sort values <= (last before or first equal) the given values |
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 think it should actually be "last that's before or equal" -- if you have multiple equal values to the one you are looking up, it should return the last of these.
- __`lt`__: (less than) find nearest (last) record with sort values < (before) the given values | ||
- __`le`__: (less than or equal to) find nearest record with sort values <= (last before or first equal) the given values | ||
- __`gt`__: (greater than) find nearest (first) record with sort values > (after) the given values | ||
- __`ge`__: (greater than or equal to) find nearest (first) record with sort values >= (equal or after) the given values |
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.
this one should be "first equal or after", though I think this is clear as is. Maybe le
can be phrased the same way.
I welcome edits / rephrasing. This is just the simplest change to make it clear to me, but it might only muddle it for others.
There might also be other places this clarification should be made - IDK.