mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
DocC keeps changing its link syntax. The latest iteration appears to have trouble dealing with `Self`-taking or `Self`-returning methods, so change our API to replace `Self` with a direct mention of the concrete type. ¯\\\_(ツ)\_/¯ That said, the new compiler also found a large number of mismatching parameter names, and that was really helpful.
72 lines
1.6 KiB
Markdown
72 lines
1.6 KiB
Markdown
# ``BitCollections/BitArray``
|
|
|
|
<!-- Summary -->
|
|
|
|
<!-- ## Overview -->
|
|
|
|
## Topics
|
|
|
|
### Creating a Bit Array
|
|
|
|
- ``init()``
|
|
- ``init(minimumCapacity:)``
|
|
- ``init(_:)-(Sequence<Bool>)``
|
|
- ``init(repeating:count:)``
|
|
- ``init(_:)-(BitArray)``
|
|
- ``init(_:)-(BitArray.SubSequence)``
|
|
- ``init(_:)-(BitSet)``
|
|
- ``init(bitPattern:)``
|
|
- ``randomBits(count:)``
|
|
- ``randomBits(count:using:)``
|
|
|
|
### Accessing Elements
|
|
|
|
- ``subscript(_:)``
|
|
- ``first``
|
|
- ``last``
|
|
|
|
### Adding Elements
|
|
|
|
- ``append(_:)``
|
|
- ``append(contentsOf:)-(BitArray)``
|
|
- ``append(contentsOf:)-(BitArray.SubSequence)``
|
|
- ``append(contentsOf:)-(Sequence<Bool>)``
|
|
- ``append(repeating:count:)``
|
|
- ``insert(_:at:)``
|
|
- ``insert(contentsOf:at:)-(Collection<Bool>,_)``
|
|
- ``insert(contentsOf:at:)-(BitArray,_)``
|
|
- ``insert(contentsOf:at:)-(BitArray.SubSequence,_)``
|
|
- ``insert(repeating:count:at:)``
|
|
- ``truncateOrExtend(toCount:with:)``
|
|
|
|
### Removing Elements
|
|
|
|
- ``remove(at:)``
|
|
- ``removeAll(keepingCapacity:)``
|
|
- ``removeAll(where:)-4izxo``
|
|
- ``removeSubrange(_:)``
|
|
- ``removeLast()``
|
|
- ``removeLast(_:)``
|
|
- ``removeFirst()``
|
|
- ``removeFirst(_:)``
|
|
- ``popLast()``
|
|
|
|
### Replacing Elements
|
|
|
|
- ``fill(in:with:)-(RangeExpression<Int>,_)``
|
|
- ``fill(in:with:)-(Range<Int>,_)``
|
|
- ``fill(with:)``
|
|
- ``replaceSubrange(_:with:)-(_,Collection<Bool>)``
|
|
- ``replaceSubrange(_:with:)-(_,BitArray)``
|
|
- ``replaceSubrange(_:with:)-(_,BitArray.SubSequence)``
|
|
|
|
### Bitwise Operations
|
|
|
|
- ``toggleAll()``
|
|
- ``toggleAll(in:)-(Range<Int>)``
|
|
- ``toggleAll(in:)-(RangeExpression<Int>)``
|
|
- ``maskingShiftLeft(by:)``
|
|
- ``maskingShiftRight(by:)``
|
|
- ``resizingShiftLeft(by:)``
|
|
- ``resizingShiftRight(by:)``
|