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.
1.6 KiB
1.6 KiB
BitCollections/BitArray
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(_:)firstlast
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:)-4izxoremoveSubrange(_:)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:)