Skip to content

Correct unique indexes in cheat sheet to use filter, not find#4452

Merged
clockwork-labs-bot merged 2 commits intomasterfrom
phoebe/docs/cheat-sheet-unique-filters
Feb 26, 2026
Merged

Correct unique indexes in cheat sheet to use filter, not find#4452
clockwork-labs-bot merged 2 commits intomasterfrom
phoebe/docs/cheat-sheet-unique-filters

Conversation

@gefjon
Copy link
Contributor

@gefjon gefjon commented Feb 25, 2026

Description of Changes

Some examples in our cheat-sheet incorrectly used a filter method on a unique index. Unique indexes expose find, and non-unique indexes expose find. This commit updates the cheatsheet to use the appropriate index seek methods.

API and ABI breaking changes

N/a

Expected complexity level and risk

N/a

Testing

N/a

Reviewers

Does the C++ code work as written, or do you have to do something horrible to do with ranges?

Copy link
Contributor

@JasonAtClockwork JasonAtClockwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! For C++ we have to .filter() methods to allow for the scalar vs range.

@clockwork-labs-bot clockwork-labs-bot added this pull request to the merge queue Feb 26, 2026
Merged via the queue into master with commit 3a85074 Feb 26, 2026
49 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants