diff --git a/Guides/Chain.md b/Guides/Chain.md index 1c46ad3..fe8aed4 100644 --- a/Guides/Chain.md +++ b/Guides/Chain.md @@ -1,7 +1,7 @@ # Chain [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Chain.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/ChainTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/ChainTests.swift)] Concatenates two collections with the same element type, one after another. diff --git a/Guides/Chunked.md b/Guides/Chunked.md index d23a001..76bc526 100644 --- a/Guides/Chunked.md +++ b/Guides/Chunked.md @@ -1,7 +1,7 @@ # Chunked [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Chunked.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/ChunkedTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/ChunkedTests.swift)] Break a collection into subsequences where consecutive elements pass a binary predicate, or where all elements in each chunk project to the same value. diff --git a/Guides/Combinations.md b/Guides/Combinations.md index 4e3073a..4b47f1c 100644 --- a/Guides/Combinations.md +++ b/Guides/Combinations.md @@ -1,7 +1,7 @@ # Combinations [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Combinations.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/CombinationsTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/CombinationsTests.swift)] A type that computes combinations of a collection’s elements. diff --git a/Guides/Cycle.md b/Guides/Cycle.md index 7d93a63..e3a5562 100644 --- a/Guides/Cycle.md +++ b/Guides/Cycle.md @@ -1,7 +1,7 @@ # Cycle [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Cycle.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/CycleTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/CycleTests.swift)] Iterate over a collection forever, or a set number of times. diff --git a/Guides/Indexed.md b/Guides/Indexed.md index de168f8..0fb7d0b 100644 --- a/Guides/Indexed.md +++ b/Guides/Indexed.md @@ -1,7 +1,7 @@ # Indexed [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Indexed.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/IndexedTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/IndexedTests.swift)] The `enumerated` method, but pairing each element with its index instead of an incrementing integer counter. diff --git a/Guides/Partition.md b/Guides/Partition.md index ec1e630..c8eab23 100644 --- a/Guides/Partition.md +++ b/Guides/Partition.md @@ -1,7 +1,7 @@ # Partition [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Partition.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/PartitionTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/PartitionTests.swift)] Methods for performing a stable partition on mutable collections, and for finding the partitioning index in an already partitioned collection. diff --git a/Guides/Permutations.md b/Guides/Permutations.md index 19341c7..1740919 100644 --- a/Guides/Permutations.md +++ b/Guides/Permutations.md @@ -1,7 +1,7 @@ # Permutations [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Permutations.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/PermutationsTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/PermutationsTests.swift)] A type that computes permutations of a collection’s elements, or of a subset of those elements. diff --git a/Guides/Product.md b/Guides/Product.md index 171b690..157e536 100644 --- a/Guides/Product.md +++ b/Guides/Product.md @@ -1,7 +1,7 @@ # Product [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Product.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/ProductTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/ProductTests.swift)] A function for iterating over every pair of elements in two different collections. diff --git a/Guides/RandomSampling.md b/Guides/RandomSampling.md index dc737f9..e244e45 100644 --- a/Guides/RandomSampling.md +++ b/Guides/RandomSampling.md @@ -1,7 +1,7 @@ # Random Sampling [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/RandomSample.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/RandomSampleTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/RandomSampleTests.swift)] Operations for randomly selecting `k` elements without replacement from a sequence or collection. diff --git a/Guides/Rotate.md b/Guides/Rotate.md index 18f1455..96b85d1 100644 --- a/Guides/Rotate.md +++ b/Guides/Rotate.md @@ -1,7 +1,7 @@ # Rotate [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Rotate.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/RotateTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/RotateTests.swift)] A mutating method that rotates the elements of a collection to new positions. diff --git a/Guides/Unique.md b/Guides/Unique.md index e9016ee..4b4b64a 100644 --- a/Guides/Unique.md +++ b/Guides/Unique.md @@ -1,7 +1,7 @@ # Unique [[Source](https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Unique.swift) | - [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests/UniqueTests.swift)] + [Tests](https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests/UniqueTests.swift)] Methods to strip repeated elements from a sequence or collection.