mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-24 04:17:48 +00:00
33 lines
713 B
Markdown
33 lines
713 B
Markdown
# Combinations and Permutations
|
|
|
|
Find the combinations and permutations of any collection's elements,
|
|
or the product of two different collections.
|
|
|
|
## Topics
|
|
|
|
### Combinations
|
|
|
|
- ``Swift/Collection/combinations(ofCount:)-26o4x``
|
|
- ``Swift/Collection/combinations(ofCount:)-53jql``
|
|
|
|
### Permutations
|
|
|
|
- ``Swift/Collection/permutations(ofCount:)-7rc99``
|
|
- ``Swift/Collection/permutations(ofCount:)-5zvhn``
|
|
|
|
### Unique Permutations
|
|
|
|
- ``Swift/Collection/uniquePermutations(ofCount:)-2extq``
|
|
- ``Swift/Collection/uniquePermutations(ofCount:)-48r1k``
|
|
|
|
### Product
|
|
|
|
- ``product(_:_:)``
|
|
|
|
### Supporting Types
|
|
|
|
- ``CombinationsSequence``
|
|
- ``PermutationsSequence``
|
|
- ``UniquePermutationsSequence``
|
|
- ``Product2Sequence``
|