mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
The generic `isEqualSet(to: some Sequence<Int>)` overload returned false whenever `other.underestimatedCount` exceeded `count`. A sequence with duplicate items can be longer than the set it equals, so `([1, 2, 3, 4] as BitSet.Counted).isEqualSet(to: [4, 1, 1, 2, 3, 3, 4] as [Int])` returned false, contradicting the documented behavior. Forward straight to `BitSet.isEqualSet(to:)`, which already handles duplicates and keeps the count shortcut for unique collections.