mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-24 04:17:48 +00:00
* Add uniquePermutations as wrapper for nextPermutation * Implement uniquePermutations(ofCount:) variants * Simplify UniquePermutations.Iterator.next() * Add tests for uniquePermutations * Move to a predicate-based uniquePermutations * Add method documentation * Convert to Hashable-based uniquing instead of Comparable * Streamline tests, cover uniqueness * Use optional count to collapse no-count method * Update API documentation * Remove leftover version of nextPermutation() * Remove Hashable requirement from the UniquePermutations type * Update documentation * Apply Tim's great revisions Co-authored-by: Tim Vermeulen <tvermeulen@apple.com> * Add lazy conformance to UniquePermutations Co-authored-by: Tim Vermeulen <tvermeulen@apple.com>