mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[BitCollections] Adopt some instead of classic generic where possible
This commit is contained in:
26 files changed
+234
-229
No files matched your search
@@ -151,10 +151,10 @@ extension BitArray._UnsafeHandle {
|
||||
}
|
||||
|
||||
extension BitArray._UnsafeHandle {
|
||||
internal mutating func copy<S: Sequence>(
|
||||
from source: S,
|
||||
internal mutating func copy(
|
||||
from source: some Sequence<Bool>,
|
||||
to range: Range<Int>
|
||||
) where S.Element == Bool {
|
||||
) {
|
||||
assert(range.lowerBound >= 0 && range.upperBound <= self.count)
|
||||
var pos = _BitPosition(range.lowerBound)
|
||||
var it = source.makeIterator()
|
||||
|
||||
Reference in new issue
Block a user