Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Fix
SequenceSet#merge
with another SequenceSet
Most methods convert their inputs into an array of range tuples. For efficiency, SequenceSet inputs just use the internal `@tuples` array directly. Unfortunately, the internal tuples arrays were also reused, which could cause a variety of bugs. Fortunately, the only bug I experienced was that adding a frozen SequenceSet would result in frozen tuples being added to a mutable set. But this could also result in modifications to one SequenceSet affecting another SequenceSet!
- Loading branch information