Skip to content

🐛 Fix SequenceSet#slice when length > result size #459

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Apr 28, 2025

The goal is for #[] (aliased as #slice) to behave similarly to Array#[]/Array#slice. When Array#slice has a length or range that extends beyond the end of the array, they simply return everything up to the end.

@nevans nevans added the bug Something isn't working label Apr 28, 2025
@nevans nevans changed the base branch from sequence_set/fix-xor-should-not-modify-self to master April 28, 2025 22:58
@nevans nevans force-pushed the sequence_set/fix-slice-longer-than-remainder branch 2 times, most recently from 3aedace to b2ab546 Compare April 29, 2025 02:53
The goal is for `#[]` (aliased as `#slice`) to behave similarly to
`Array#[]`/`Array#slice`.  When `Array#slice` has a length or range that
extends beyond the end of the array, they simply return everything
up to the end.
@nevans nevans force-pushed the sequence_set/fix-slice-longer-than-remainder branch from b2ab546 to 023f3c4 Compare April 29, 2025 03:00
@nevans nevans changed the title 🐛 Fix SequenceSet#slice when length > result size 🐛 Fix SequenceSet#slice when length > result size Apr 29, 2025
@nevans nevans merged commit 14c011e into master Apr 29, 2025
37 checks passed
@nevans nevans deleted the sequence_set/fix-slice-longer-than-remainder branch April 29, 2025 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant