diff --git a/Sources/BitCollections/BitCollections.docc/Extensions/BitArray.md b/Sources/BitCollections/BitCollections.docc/Extensions/BitArray.md new file mode 100644 index 00000000..1f3baa3c --- /dev/null +++ b/Sources/BitCollections/BitCollections.docc/Extensions/BitArray.md @@ -0,0 +1,72 @@ +# ``BitCollections/BitArray`` + +Summary + +## Overview + +Text + +## Topics + +### Creating a Bit Array + +- ``init()`` +- ``init(_:)-2y0wv`` +- ``init(repeating:count:)-4j5yd`` +- ``init(_:)-6ldyw`` +- ``init(_:)-4tksd`` +- ``init(_:)-765d2`` +- ``init(bitPattern:)`` +- ``random(count:)`` +- ``random(count:using:)`` + +### Accessing Elements + +- ``subscript(_:)-51ccj`` +- ``subscript(_:)-944vg`` +- ``first`` +- ``last`` + +### Adding Elements + +- ``append(_:)`` +- ``append(contentsOf:)-18dwf`` +- ``append(contentsOf:)-576q4`` +- ``append(contentsOf:)-8xkr8`` +- ``insert(_:at:)`` +- ``insert(contentsOf:at:)-7e1xn`` +- ``insert(contentsOf:at:)-35dp3`` +- ``insert(contentsOf:at:)-1wsgw`` +- ``truncateOrExtend(toCount:with:)`` + +### Removing Elements + +- ``remove(at:)-7ij12`` +- ``removeAll(keepingCapacity:)-5tkge`` +- ``removeAll(where:)-7tv7z`` +- ``removeSubrange(_:)-86ou8`` +- ``removeSubrange(_:)-18qe7`` +- ``removeLast()`` +- ``removeLast(_:)`` +- ``removeFirst()`` +- ``removeFirst(_:)`` +- ``popLast()`` + +### Replacing Elements + +- ``fill(in:with:)`` +- ``fill(with:)`` +- ``replaceSubrange(_:with:)-163u2`` +- ``replaceSubrange(_:with:)-875d8`` +- ``replaceSubrange(_:with:)-2i7lu`` +- ``replaceSubrange(_:with:)-b5ou`` + +### Bitwise Operators + +- ``&(_:_:)`` +- ``_(_:_:)-1rhw`` +- ``_(_:_:)-56s54`` +- ``~(_:)`` +- ``&=(_:_:)`` +- ``_=(_:_:)-69yf0`` +- ``_=(_:_:)-icef`` diff --git a/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.Counted.md b/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.Counted.md index fbec5925..a3fed3b0 100644 --- a/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.Counted.md +++ b/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.Counted.md @@ -8,6 +8,49 @@ ## Topics +### Collection Views + +- ``uncounted`` + +### Creating a Set + +- ``init()`` +- ``init(reservingCapacity:)`` +- ``init(_:)-15cws`` +- ``init(_:)-38hho`` +- ``init(_:)-2of3i`` +- ``init(_:)-5fhls`` +- ``init(bitPattern:)`` +- ``init(words:)`` +- ``random(upTo:)`` +- ``random(upTo:using:)`` + +### Finding Elements + +- ``contains(_:)`` +- ``firstIndex(of:)`` +- ``lastIndex(of:)`` + +### Adding and Updating Elements + +- ``insert(_:)`` +- ``update(with:)`` + +### Removing Elements + +- ``filter(_:)`` +- ``remove(_:)`` +- ``remove(at:)`` + +### Sorted Set Operations + +- ``subscript(member:)`` +- ``subscript(members:)-5nkxk`` +- ``subscript(members:)-5xfq5`` +- ``min()`` +- ``max()`` +- ``sorted()`` + ### Binary Set Operations - ``intersection(_:)-1wfb5`` diff --git a/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.md b/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.md index df39d0d0..44ce1d15 100644 --- a/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.md +++ b/Sources/BitCollections/BitCollections.docc/Extensions/BitSet.md @@ -8,11 +8,51 @@ ## Topics -### Nested Structures +### Collection Views - ``Counted-swift.struct`` +- ``counted-swift.property`` -### Binary Set Operations +### Creating a Set + +- ``init()`` +- ``init(reservingCapacity:)`` +- ``init(_:)-15cws`` +- ``init(_:)-38hho`` +- ``init(_:)-2of3i`` +- ``init(_:)-5fhls`` +- ``init(bitPattern:)`` +- ``init(words:)`` +- ``random(upTo:)`` +- ``random(upTo:using:)`` + +### Finding Elements + +- ``contains(_:)`` +- ``firstIndex(of:)`` +- ``lastIndex(of:)`` + +### Adding and Updating Elements + +- ``insert(_:)`` +- ``update(with:)`` + +### Removing Elements + +- ``filter(_:)`` +- ``remove(_:)`` +- ``remove(at:)`` + +### Sorted Set Operations + +- ``subscript(member:)`` +- ``subscript(members:)-5nkxk`` +- ``subscript(members:)-5xfq5`` +- ``min()`` +- ``max()`` +- ``sorted()`` + +### Combining Sets - ``intersection(_:)-84q4u`` - ``intersection(_:)-8hcl9`` @@ -54,7 +94,7 @@ - ``formSymmetricDifference(_:)-7wole`` - ``formSymmetricDifference(_:)-8vcnf`` -### Binary Set Predicates +### Comparing Sets - ``==(_:_:)`` - ``isEqual(to:)-5zfpo`` @@ -86,3 +126,7 @@ - ``isDisjoint(with:)-3klxy`` - ``isDisjoint(with:)-4uidy`` - ``isDisjoint(with:)-78a8w`` + +### Memory Management + +- ``reserveCapacity(_:)``