Files
Karoy Lorentey 80878519f2 [doc] Fix most issues reported by docc
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.
2026-03-09 14:14:51 -07:00

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(_:)
  • 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:)