mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
The `isEqual(to:)` methods are a bit too confusing — they implement mathematical set comparisons (ignoring element ordering and, in the case of the Sequence variant, even element multiplicities), so it seems better to highlight this by putting a `Set` in the name.
126 lines
2.5 KiB
Markdown
126 lines
2.5 KiB
Markdown
# ``BitCollections/BitSet/Counted-swift.struct``
|
|
|
|
<!-- Summary -->
|
|
|
|
<!-- ## Overview -->
|
|
|
|
## 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``
|
|
- ``intersection(_:)-4evdp``
|
|
- ``intersection(_:)-9rtcc``
|
|
- ``intersection(_:)-13us``
|
|
|
|
- ``union(_:)-2okwt``
|
|
- ``union(_:)-pwqf``
|
|
- ``union(_:)-18u31``
|
|
- ``union(_:)-8ysz9``
|
|
|
|
- ``subtracting(_:)-7u4tf``
|
|
- ``subtracting(_:)-5vgml``
|
|
- ``subtracting(_:)-6scy1``
|
|
- ``subtracting(_:)-82loi``
|
|
|
|
- ``symmetricDifference(_:)-84e40``
|
|
- ``symmetricDifference(_:)-3suo3``
|
|
- ``symmetricDifference(_:)-7zx5q``
|
|
- ``symmetricDifference(_:)-46ni1``
|
|
|
|
- ``formIntersection(_:)-49and``
|
|
- ``formIntersection(_:)-49a0x``
|
|
- ``formIntersection(_:)-79anv``
|
|
- ``formIntersection(_:)-3zoc4``
|
|
|
|
- ``formUnion(_:)-c6a3``
|
|
- ``formUnion(_:)-c5kv``
|
|
- ``formUnion(_:)-2f05x``
|
|
- ``formUnion(_:)-8kilf``
|
|
|
|
- ``subtract(_:)-2hzty``
|
|
- ``subtract(_:)-2i1qq``
|
|
- ``subtract(_:)-32jtb``
|
|
- ``subtract(_:)-75xgt``
|
|
|
|
- ``formSymmetricDifference(_:)-6vskl``
|
|
- ``formSymmetricDifference(_:)-6vs05``
|
|
- ``formSymmetricDifference(_:)-d2kd``
|
|
- ``formSymmetricDifference(_:)-54ghn``
|
|
|
|
### Binary Set Predicates
|
|
|
|
- ``==(_:_:)``
|
|
- ``isEqualSet(to:)-11031``
|
|
- ``isEqualSet(to:)-1hvpp``
|
|
- ``isEqualSet(to:)-1mvpq``
|
|
- ``isEqualSet(to:)-878x1``
|
|
|
|
- ``isSubset(of:)-8iy8c``
|
|
- ``isSubset(of:)-1r41b``
|
|
- ``isSubset(of:)-1dz0p``
|
|
- ``isSubset(of:)-3bq5m``
|
|
|
|
- ``isSuperset(of:)-48i5c``
|
|
- ``isSuperset(of:)-10gu8``
|
|
- ``isSuperset(of:)-8b7lq``
|
|
- ``isSuperset(of:)-6slai``
|
|
|
|
- ``isStrictSubset(of:)-5ry1b``
|
|
- ``isStrictSubset(of:)-2ndu3``
|
|
- ``isStrictSubset(of:)-9iul0``
|
|
- ``isStrictSubset(of:)-2pq1j``
|
|
|
|
- ``isStrictSuperset(of:)-9mgmd``
|
|
- ``isStrictSuperset(of:)-6hw4t``
|
|
- ``isStrictSuperset(of:)-1ya0j``
|
|
- ``isStrictSuperset(of:)-4qt1e``
|
|
|
|
- ``isDisjoint(with:)-9wyku``
|
|
- ``isDisjoint(with:)-5fww0``
|
|
- ``isDisjoint(with:)-6p0t7``
|
|
- ``isDisjoint(with:)-eujj``
|