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

✨ Preserving sequence set order #254

Merged
merged 4 commits into from
Dec 24, 2023

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Dec 24, 2023

  • ✨ Add SequenceSet#entries and #each_entry, for unsorted iteration
  • ✨ Add SequenceSet#append, to keep unsorted order when modifying the set
  • 📚 Document SequenceSet "Normalized form"

Unsorted access (preserving the original order from the server response) is especially important for using with the ESORT, CONTEXT=SORT, and UIDPLUS extensions.

In addition to preserving the original order, duplicate numbers are not removed, nor are adjacent or overlapping ranges or numbers coalesced.

This matches `Range#overlap?`, which has been added to ruby 3.3.
Unsorted access is especially important for using with the ESORT or
CONTEXT=SORT extensions.
@nevans nevans merged commit 1a26054 into ruby:master Dec 24, 2023
11 checks passed
@nevans nevans deleted the preserving-sequence-set-order branch December 24, 2023 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant