mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
98 lines
1.8 KiB
Markdown
98 lines
1.8 KiB
Markdown
# ``Collections/PersistentSet``
|
|
|
|
## Overview
|
|
|
|
## Topics
|
|
|
|
### Creating a Set
|
|
|
|
- ``init()``
|
|
- ``init(_:)-6nn9e``
|
|
- ``init(_:)-6qbps``
|
|
- ``init(_:)-30nei``
|
|
|
|
### Finding Elements
|
|
|
|
- ``contains(_:)``
|
|
- ``firstIndex(of:)``
|
|
- ``lastIndex(of:)``
|
|
|
|
### Adding and Updating Elements
|
|
|
|
- ``insert(_:)``
|
|
- ``update(with:)``
|
|
- ``update(_:at:)``
|
|
|
|
### Removing Elements
|
|
|
|
- ``filter(_:)``
|
|
- ``remove(_:)``
|
|
- ``remove(at:)``
|
|
|
|
### Non-mutating Set Operations
|
|
|
|
- ``inserting(_:)``
|
|
- ``updating(with:)``
|
|
- ``removing(_:)``
|
|
|
|
### Combining Sets
|
|
|
|
- ``intersection(_:)-9dx2a``
|
|
- ``intersection(_:)-5z4my``
|
|
- ``intersection(_:)-1d4e0``
|
|
|
|
- ``union(_:)-1nk1t``
|
|
- ``union(_:)-8otnp``
|
|
- ``union(_:)-6eysm``
|
|
|
|
- ``subtracting(_:)-8sczx``
|
|
- ``subtracting(_:)-2iv0a``
|
|
- ``subtracting(_:)-63bfb``
|
|
|
|
- ``symmetricDifference(_:)-76bw``
|
|
- ``symmetricDifference(_:)-92ha9``
|
|
- ``symmetricDifference(_:)-1n89g``
|
|
|
|
- ``formIntersection(_:)-4s0od``
|
|
- ``formIntersection(_:)-7dqfx``
|
|
- ``formIntersection(_:)-8i59p``
|
|
|
|
- ``formUnion(_:)-68pog``
|
|
- ``formUnion(_:)-82rrc``
|
|
- ``formUnion(_:)-4r7qz``
|
|
|
|
- ``subtract(_:)-7rmd3``
|
|
- ``subtract(_:)-47r93``
|
|
- ``subtract(_:)-3v8ms``
|
|
|
|
- ``formSymmetricDifference(_:)-499uq``
|
|
- ``formSymmetricDifference(_:)-8wue8``
|
|
- ``formSymmetricDifference(_:)-4t8jr``
|
|
|
|
### Comparing Sets
|
|
|
|
- ``==(_:_:)``
|
|
- ``isEqual(to:)-3m3in``
|
|
- ``isEqual(to:)-7mkn1``
|
|
- ``isEqual(to:)-5px5r``
|
|
|
|
- ``isSubset(of:)-9mp7l``
|
|
- ``isSubset(of:)-2jlh``
|
|
- ``isSubset(of:)-8vn0j``
|
|
|
|
- ``isSuperset(of:)-5af8o``
|
|
- ``isSuperset(of:)-6mvxj``
|
|
- ``isSuperset(of:)-864jy``
|
|
|
|
- ``isStrictSubset(of:)-48nx2``
|
|
- ``isStrictSubset(of:)-2j680``
|
|
- ``isStrictSubset(of:)-1s6n9``
|
|
|
|
- ``isStrictSuperset(of:)-nd5j``
|
|
- ``isStrictSuperset(of:)-5z263``
|
|
- ``isStrictSuperset(of:)-ivbh``
|
|
|
|
- ``isDisjoint(with:)-12irx``
|
|
- ``isDisjoint(with:)-1hhyf``
|
|
- ``isDisjoint(with:)-61lde``
|