Files

1.7 KiB

BitCollections/BitArray

Topics

Creating a Bit Array

  • init()
  • init(minimumCapacity:)
  • init(_:)-2y0wv
  • init(repeating:count:)-4j5yd
  • init(_:)-6ldyw
  • init(_:)-4tksd
  • init(_:)-765d2
  • init(bitPattern:)
  • randomBits(count:)
  • randomBits(count:using:)

Accessing Elements

  • subscript(_:)-51ccj
  • first
  • last

Adding Elements

  • append(_:)-8dqhn
  • append(contentsOf:)-18dwf
  • append(contentsOf:)-576q4
  • append(contentsOf:)-8xkr8
  • append(repeating:count:)
  • insert(_:at:)-9t4hf
  • insert(contentsOf:at:)-7e1xn
  • insert(contentsOf:at:)-35dp3
  • insert(contentsOf:at:)-1wsgw
  • insert(repeating:count:at:)
  • truncateOrExtend(toCount:with:)

Removing Elements

  • remove(at:)-7ij12
  • removeAll(keepingCapacity:)-5tkge
  • removeAll(where:)-7tv7z
  • removeSubrange(_:)-86ou8
  • removeSubrange(_:)-18qe7
  • removeLast()
  • removeLast(_:)
  • removeFirst()-dcsp
  • removeFirst(_:)-9nqlo
  • popLast()

Replacing Elements

  • fill(in:with:)-1lrlg
  • fill(in:with:)-8sf1b
  • fill(with:)
  • replaceSubrange(_:with:)-163u2
  • replaceSubrange(_:with:)-875d8
  • replaceSubrange(_:with:)-2i7lu
  • replaceSubrange(_:with:)-b5ou

Bitwise Operations

  • toggleAll()
  • toggleAll(in:)-3duwn
  • toggleAll(in:)-5hfhl
  • maskingShiftLeft(by:)
  • maskingShiftRight(by:)
  • resizingShiftLeft(by:)
  • resizingShiftRight(by:)