diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cb32233..f57e0a75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,21 @@ package updates, you can specify your package dependency using --- +## [0.2.1] - 2021-06-01 + +### Additions + +Expanded versatility for two existing operations: + +- A series of `joined(by:)` overloads concatenate a sequence of sequences using + an element or a collection, either passed in or generated from consecutive + elements via a closure. ([#138]) +- Additional `trimming(while:)` methods for trimming only the start or end of a + collection, as well as mutating versions of all three variants. ([#104]) + +The 0.2.1 release includes contributions from [fedeci] and [timvermeulen]. +Thank you! + ## [0.2.0] - 2021-05-17 ### Additions @@ -191,7 +206,8 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co -[Unreleased]: https://github.com/apple/swift-algorithms/compare/0.2.0...HEAD +[Unreleased]: https://github.com/apple/swift-algorithms/compare/0.2.1...HEAD +[0.2.1]: https://github.com/apple/swift-algorithms/compare/0.2.0...0.2.1 [0.2.0]: https://github.com/apple/swift-algorithms/compare/0.1.1...0.2.0 [0.1.1]: https://github.com/apple/swift-algorithms/compare/0.1.0...0.1.1 [0.1.0]: https://github.com/apple/swift-algorithms/compare/0.0.4...0.1.0 @@ -219,12 +235,14 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co [#85]: https://github.com/apple/swift-algorithms/pull/85 [#90]: https://github.com/apple/swift-algorithms/pull/90 [#91]: https://github.com/apple/swift-algorithms/pull/91 +[#104]: https://github.com/apple/swift-algorithms/pull/104 [#106]: https://github.com/apple/swift-algorithms/pull/106 [#112]: https://github.com/apple/swift-algorithms/pull/112 [#119]: https://github.com/apple/swift-algorithms/pull/119 [#124]: https://github.com/apple/swift-algorithms/pull/124 [#125]: https://github.com/apple/swift-algorithms/pull/125 [#130]: https://github.com/apple/swift-algorithms/pull/130 +[#138]: https://github.com/apple/swift-algorithms/pull/138 @@ -235,6 +253,7 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co [danielctull]: https://github.com/apple/swift-algorithms/commits?author=danielctull [dhruvshah8]: https://github.com/apple/swift-algorithms/commits?author=dhruvshah8 [egorzhdan]: https://github.com/apple/swift-algorithms/commits?author=egorzhdan +[fedeci]: https://github.com/apple/swift-algorithms/commits?author=fedeci [hashemi]: https://github.com/apple/swift-algorithms/commits?author=hashemi [IanKeen]: https://github.com/apple/swift-algorithms/commits?author=IanKeen [iSame7]: https://github.com/apple/swift-algorithms/commits?author=iSame7 diff --git a/README.md b/README.md index 7ff5fd31..c5bc98d0 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,9 @@ Read more about the package, and the intent behind it, in the [announcement on s #### Combining collections - [`chain(_:_:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Chain.md): Concatenates two collections with the same element type. -- [`product(_:_:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Product.md): Iterates over all the pairs of two collections; equivalent to nested `for`-`in` loops. - [`cycled()`, `cycled(times:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Cycle.md): Repeats the elements of a collection forever or a set number of times. +- [`joined(by:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Joined.md): Concatenate sequences of sequences, using an element or sequence as a separator, or using a closure to generate each separator. +- [`product(_:_:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Product.md): Iterates over all the pairs of two collections; equivalent to nested `for`-`in` loops. #### Subsetting operations @@ -30,7 +31,7 @@ Read more about the package, and the intent behind it, in the [announcement on s - [`randomStableSample(count:)`, `randomStableSample(count:using:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/RandomSampling.md): Randomly selects a specific number of elements from a collection, preserving their original relative order. - [`striding(by:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Stride.md): Returns every nth element of a collection. - [`suffix(while:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Suffix.md): Returns the suffix of a collection where all element pass a given predicate. -- [`trimming(while:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Trim.md): Returns a slice by trimming elements from a collection's start and end. +- [`trimmingPrefix(while:)`, `trimmingSuffix(while)`, `trimming(while:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Trim.md): Returns a slice by trimming elements from a collection's start, end, or both. The mutating `trim...` methods trim a collection in place. - [`uniqued()`, `uniqued(on:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/Unique.md): The unique elements of a collection, preserving their order. - [`minAndMax()`, `minAndMax(by:)`](https://github.com/apple/swift-algorithms/blob/main/Guides/MinMax.md): Returns the smallest and largest elements of a sequence.