Skip to content

🐛 Allow SequenceSet#slice length to be negative - #782

Merged
nevans merged 1 commit into
masterfrom
sequence_set/fix-slice-with-negative-length
Oct 10, 2026
Merged

nevans merged 1 commit into
masterfrom
sequence_set/fix-slice-with-negative-length

Conversation

@nevans

@nevans nevans commented Oct 10, 2026

Copy link
Copy Markdown
Collaborator

When length is zero, #slice will behave similarly to Array#slice and return nil, rather than raise an ArgumentError.

When length is zero, `#slice` will behave similarly to `Array#slice` and
return `nil`, rather than raise an ArgumentError.
@nevans nevans added the bug Something isn't working label Oct 10, 2026
@nevans
nevans added this pull request to stack #775 October 10, 2026 03:18
Base automatically changed from sequence_set/fix-slice-with-zero-length to master October 10, 2026 03:25
@nevans
nevans merged commit 8dcc0db into master Oct 10, 2026
34 checks passed
@nevans
nevans deleted the sequence_set/fix-slice-with-negative-length branch October 10, 2026 03:25
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