From f0dba1433f7139a71dc0dfb4b66be681906be914 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Tue, 12 Jan 2021 20:07:01 +0000 Subject: [PATCH 1/2] Update README.md Adds `slidingWindows(ofCount:)` and `striding(by:)` to README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f07d3d3..043482b8 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ Read more about the package, and the intent behind it, in the [announcement on s - [`chunked(by:)`, `chunked(on:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Chunked.md): Eager and lazy operations that break a collection into chunks based on either a binary predicate or when the result of a projection changes. - [`indexed()`](https://github.com/apple/swift-algorithms/blob/main/Guides/Indexed.md): Iterate over tuples of a collection's indices and elements. - [`trimming(where:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Trim.md): Returns a slice by trimming elements from a collection's start and end. - +- [`slidingWindows(ofCount:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/SlidingWindows.md): Breaks a collection into overlapping contiguous window subsequences where elements are slices from the original collection. +- [`striding(by:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Stride.md): Safely and efficiently operate over every `nth` element of a collection. ## Adding Swift Algorithms as a Dependency From b18a659ab544a198f3e0a7a9bb200a1088eb9642 Mon Sep 17 00:00:00 2001 From: Oliver Atkinson Date: Thu, 14 Jan 2021 17:26:41 +0000 Subject: [PATCH 2/2] Update README.md Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 043482b8..8ad784f1 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Read more about the package, and the intent behind it, in the [announcement on s - [`indexed()`](https://github.com/apple/swift-algorithms/blob/main/Guides/Indexed.md): Iterate over tuples of a collection's indices and elements. - [`trimming(where:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Trim.md): Returns a slice by trimming elements from a collection's start and end. - [`slidingWindows(ofCount:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/SlidingWindows.md): Breaks a collection into overlapping contiguous window subsequences where elements are slices from the original collection. -- [`striding(by:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Stride.md): Safely and efficiently operate over every `nth` element of a collection. +- [`striding(by:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Stride.md): Returns every nth element of a collection. ## Adding Swift Algorithms as a Dependency