mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[BitCollections] Move shared utilities to _CollectionsUtilities
This commit is contained in:
1 parent
3d11356006
commit
541bd53958
15 files changed
+227
-162
No files matched your search
@@ -9,6 +9,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _CollectionsUtilities
|
||||
|
||||
extension BitArray {
|
||||
internal mutating func _copy(
|
||||
from range: Range<Int>,
|
||||
|
||||
@@ -23,7 +23,7 @@ extension BitArray: CustomStringConvertible {
|
||||
let b1: UInt8 = 49 // ASCII 1
|
||||
var i = 0
|
||||
for v in self {
|
||||
target._initialize(at: i, to: v ? b1 : b0)
|
||||
target.initializeElement(at: i, to: v ? b1 : b0)
|
||||
i &+= 1
|
||||
}
|
||||
return i
|
||||
|
||||
Reference in new issue
Block a user