[BitCollections] Adopt some instead of classic generic where possible

This commit is contained in:
Karoy Lorentey committed 2024-01-30 18:07:00 -08:00
1 parent ad4ecc3d0f
commit db3bd17b40
26 files changed
+234 -229

No files matched your search

@@ -187,9 +187,7 @@ extension BitArray {
}
@inlinable
public mutating func toggleAll<R: RangeExpression>(
in range: R
) where R.Bound == Int {
public mutating func toggleAll(in range: some RangeExpression<Int>) {
toggleAll(in: range.relative(to: self))
}
}