Skip to content
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

✨ Add SequenceSet#ordered_at #397

Merged
merged 2 commits into from
Feb 4, 2025
Merged

✨ Add SequenceSet#ordered_at #397

merged 2 commits into from
Feb 4, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Feb 4, 2025

Returns the first index of number in the ordered #entries, or nil if number isn't in the set.

This is the ordered entries variation of #at.

@nevans nevans changed the title ✨ Add SequenceSet#ordered_at ✨ Add SequenceSet#ordered_at Feb 4, 2025
@nevans nevans force-pushed the sequence_set-ordered_at branch from 5a85634 to d29c965 Compare February 4, 2025 00:06
Some of the `#[negative index]` specs were using non-negative indexes.
They've been updated to use negative indexes.

Previously, `#at` was indirectly tested only by the `SequenceSet#[]`
test and the randomized "compare to reference Set" tests.  The new tests
specifically explicitly focus on `#[]`.
This is the ordered entries variation of `#at`.
@nevans nevans force-pushed the sequence_set-ordered_at branch from d29c965 to 54de657 Compare February 4, 2025 15:16
@nevans nevans merged commit cfb93b9 into master Feb 4, 2025
37 checks passed
@nevans nevans deleted the sequence_set-ordered_at branch February 4, 2025 15:22
@nevans nevans added the enhancement New feature or request label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

1 participant