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
@@ -42,7 +42,7 @@ extension BitArray {
|
||||
/// BitArray(bitPattern: -1 as Int) // 1111111111...1111111111
|
||||
///
|
||||
/// - Complexity: O(value.bitWidth)
|
||||
public init<I: BinaryInteger>(bitPattern value: I) {
|
||||
public init(bitPattern value: some BinaryInteger) {
|
||||
var words = value.words.map { _Word($0) }
|
||||
let count = value.bitWidth
|
||||
if words.isEmpty {
|
||||
|
||||
Reference in new issue
Block a user