[BitArray] fill(in:with:), insert(repeating:count:at:), append(repeating:count:)

This commit is contained in:
Karoy Lorentey committed 2023-01-31 18:01:46 -08:00
1 parent a90b73966a
commit 17343b752a
2 files changed
+28

No files matched your search

@@ -31,4 +31,11 @@ extension BitArray {
}
}
}
public mutating func fill<R: RangeExpression>(
in range: R,
with value: Bool = true
) where R.Bound == Int {
fill(in: range.relative(to: self), with: value)
}
}