@@ -12,8 +12,43 @@ package updates, you can specify your package dependency using
1212
1313## [ Unreleased]
1414
15- - ` adjacentPairs() ` lazily iterates over tuples of adjacent elements of a sequence.
16- - ` minAndMax() ` finds both the smallest and largest elements of a sequence in a single pass.
15+ * No new changes.*
16+
17+ ---
18+
19+ ## [ 0.2.0] - 2021-05-17
20+
21+ ### Additions
22+
23+ Two new additions to the list of algorithms:
24+
25+ - ` adjacentPairs() ` lazily iterates over tuples of adjacent elements of a
26+ sequence. ([ #119 ] )
27+ - ` minAndMax() ` finds both the smallest and largest elements of a sequence in
28+ a single pass. ([ #90 ] )
29+
30+ ### Changes
31+
32+ - When calling ` chunked(on:) ` , the resulting collection has an element type of
33+ ` (Subject, SubSequence) ` instead of just ` SubSequence ` , making the subject
34+ value available when iterating.
35+
36+ ``` swift
37+ let numbers = [5 , 6 , -3 , -9 , -11 , 2 , 7 , 6 ]
38+ for (signum, values) in numbers.chunked (on : { $0 .signum () }) {
39+ print (signum, values)
40+ }
41+ // 1 [5, 6]
42+ // -1 [-3, -9, -11]
43+ // 1 [2, 7, 6]
44+ ```
45+
46+ ### Fixes
47+
48+ - Improvements to the documentation and PR templates.
49+
50+ The 0.2.0 release includes contributions from [CTMacUser], [LemonSpike],
51+ [mpangburn], and [natecook1000]. Thank you!
1752
1853---
1954
@@ -156,7 +191,8 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
156191
157192<!-- Link references for releases -->
158193
159- [ Unreleased ] : https://github.com/apple/swift-algorithms/compare/0.1.1...HEAD
194+ [Unreleased]: https: // github.com/apple/swift-algorithms/compare/0.2.0...HEAD
195+ [0.2.0 ]: https: // github.com/apple/swift-algorithms/compare/0.1.1...0.2.0
160196[0.1.1 ]: https: // github.com/apple/swift-algorithms/compare/0.1.0...0.1.1
161197[0.1.0 ]: https: // github.com/apple/swift-algorithms/compare/0.0.4...0.1.0
162198[0.0.4 ]: https: // github.com/apple/swift-algorithms/compare/0.0.3...0.0.4
@@ -181,9 +217,11 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
181217[#77 ]: https: // github.com/apple/swift-algorithms/pull/77
182218[#78 ]: https: // github.com/apple/swift-algorithms/pull/78
183219[#85 ]: https: // github.com/apple/swift-algorithms/pull/85
220+ [#90 ]: https: // github.com/apple/swift-algorithms/pull/90
184221[#91 ]: https: // github.com/apple/swift-algorithms/pull/91
185222[#106 ]: https: // github.com/apple/swift-algorithms/pull/106
186223[#112 ]: https: // github.com/apple/swift-algorithms/pull/112
224+ [#119 ]: https: // github.com/apple/swift-algorithms/pull/119
187225[#124 ]: https: // github.com/apple/swift-algorithms/pull/124
188226[#125 ]: https: // github.com/apple/swift-algorithms/pull/125
189227[#130 ]: https: // github.com/apple/swift-algorithms/pull/130
@@ -193,6 +231,7 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
193231[AustinConlon]: https: // github.com/apple/swift-algorithms/commits?author=AustinConlon
194232[benrimmington]: https: // github.com/apple/swift-algorithms/commits?author=benrimmington
195233[bjhomer]: https: // github.com/apple/swift-algorithms/commits?author=bjhomer
234+ [CTMacUser]: https: // github.com/apple/swift-algorithms/commits?author=CTMacUser
196235[danielctull]: https: // github.com/apple/swift-algorithms/commits?author=danielctull
197236[dhruvshah8]: https: // github.com/apple/swift-algorithms/commits?author=dhruvshah8
198237[egorzhdan]: https: // github.com/apple/swift-algorithms/commits?author=egorzhdan
@@ -206,6 +245,7 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
206245[markuswntr]: https: // github.com/apple/swift-algorithms/commits?author=markuswntr
207246[mdznr]: https: // github.com/apple/swift-algorithms/commits?author=mdznr
208247[michiboo]: https: // github.com/apple/swift-algorithms/commits?author=michiboo
248+ [mpangburn]: https: // github.com/apple/swift-algorithms/commits?author=mpangburn
209249[natecook1000]: https: // github.com/apple/swift-algorithms/commits?author=natecook1000
210250[nordicio]: https: // github.com/apple/swift-algorithms/commits?author=nordicio
211251[ollieatkinson]: https: // github.com/apple/swift-algorithms/commits?author=ollieatkinson
0 commit comments