File tree Expand file tree Collapse file tree 11 files changed +11
-11
lines changed Expand file tree Collapse file tree 11 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
# Chain
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Chain.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /ChainTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /ChainTests.swift )]
5
5
6
6
Concatenates two collections with the same element type, one after another.
7
7
Original file line number Diff line number Diff line change 1
1
# Chunked
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Chunked.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /ChunkedTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /ChunkedTests.swift )]
5
5
6
6
Break a collection into subsequences where consecutive elements pass a binary
7
7
predicate, or where all elements in each chunk project to the same value.
Original file line number Diff line number Diff line change 1
1
# Combinations
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Combinations.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /CombinationsTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /CombinationsTests.swift )]
5
5
6
6
A type that computes combinations of a collection’s elements.
7
7
Original file line number Diff line number Diff line change 1
1
# Cycle
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Cycle.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /CycleTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /CycleTests.swift )]
5
5
6
6
Iterate over a collection forever, or a set number of times.
7
7
Original file line number Diff line number Diff line change 1
1
# Indexed
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Indexed.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /IndexedTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /IndexedTests.swift )]
5
5
6
6
The ` enumerated ` method, but pairing each element with its index instead of an
7
7
incrementing integer counter.
Original file line number Diff line number Diff line change 1
1
# Partition
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Partition.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /PartitionTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /PartitionTests.swift )]
5
5
6
6
Methods for performing a stable partition on mutable collections, and for
7
7
finding the partitioning index in an already partitioned collection.
Original file line number Diff line number Diff line change 1
1
# Permutations
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Permutations.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /PermutationsTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /PermutationsTests.swift )]
5
5
6
6
A type that computes permutations of a collection’s elements, or of a subset of
7
7
those elements.
Original file line number Diff line number Diff line change 1
1
# Product
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Product.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /ProductTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /ProductTests.swift )]
5
5
6
6
A function for iterating over every pair of elements in two different
7
7
collections.
Original file line number Diff line number Diff line change 1
1
# Random Sampling
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/RandomSample.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /RandomSampleTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /RandomSampleTests.swift )]
5
5
6
6
Operations for randomly selecting ` k ` elements without replacement from a
7
7
sequence or collection.
Original file line number Diff line number Diff line change 1
1
# Rotate
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Rotate.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /RotateTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /RotateTests.swift )]
5
5
6
6
A mutating method that rotates the elements of a collection to new positions.
7
7
Original file line number Diff line number Diff line change 1
1
# Unique
2
2
3
3
[[ Source] ( https://github.com/apple/swift-algorithms/blob/main/Sources/Algorithms/Unique.swift ) |
4
- [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/AlgorithmsTests /UniqueTests.swift )]
4
+ [ Tests] ( https://github.com/apple/swift-algorithms/blob/main/Tests/SwiftAlgorithmsTests /UniqueTests.swift )]
5
5
6
6
Methods to strip repeated elements from a sequence or collection.
7
7
You can’t perform that action at this time.
0 commit comments