@@ -8,11 +8,33 @@ This project follows semantic versioning.
88
99## [ Unreleased]
1010
11- * No new changes.*
11+ ## [ 1.2.0] - 2023-11-14
12+
13+ ### Additions
14+
15+ - Sequences have new ` grouped(by:) ` and ` keyed(by:) ` methods, which simplify
16+ building dictionaries based on sequence elements: ([ #197 ] )
17+
18+ ``` swift
19+ let evensOdds = (1 ... 10 ).grouped (by : { $0 .isMultiple (of : 2 ) ? " even" : " odd" })
20+ // ["even": [2, 4, 6, 8, 10], "odd": [1, 3, 5, 7, 9]]
21+
22+ let animals = [" Aardvark" , " Alpaca" , " Armadillo" , " Barracuda" , " Buffalo" , ... ]
23+ let alphaAnimals = animals.keyed (by : \.first ! , resolvingConflictsWith : { _ , first, _ in first })
24+ // ["A": "Aardvark", "B": "Barracuda", ...]
25+ ```
26+ - The ` endOfPrefix(while:) ` and ` startOfSuffix(while) ` methods are now public.
27+ These methods were previously implementation details of the ` trimming ` group
28+ of methods. ([ #211 ] )
29+
30+ ### Fixes
31+
32+ - Documentation and performance improvements. ([ #202 ] , [ #210 ] )
33+
1234
1335---
1436
15- ## [ 1.1.0] - 2023-08-24
37+ ## [ 1.1.0] - 2023-10-05
1638
1739### Additions
1840
@@ -354,6 +376,10 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
354376[#138 ]: https: // github.com/apple/swift-algorithms/pull/138
355377[#152 ]: https: // github.com/apple/swift-algorithms/pull/152
356378[#162 ]: https: // github.com/apple/swift-algorithms/pull/162
379+ [#197 ]: https: // github.com/apple/swift-algorithms/pull/197
380+ [#202 ]: https: // github.com/apple/swift-algorithms/pull/202
381+ [#210 ]: https: // github.com/apple/swift-algorithms/pull/210
382+ [#211 ]: https: // github.com/apple/swift-algorithms/pull/211
357383
358384<!-- Link references for contributors -->
359385
@@ -376,6 +402,7 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
376402[LemonSpike]: https: // github.com/apple/swift-algorithms/commits?author=LemonSpike
377403[LucianoPAlmeida]: https: // github.com/apple/swift-algorithms/commits?author=LucianoPAlmeida
378404[markuswntr]: https: // github.com/apple/swift-algorithms/commits?author=markuswntr
405+ [mattyoung]: https: // github.com/apple/swift-algorithms/commits?author=mattyoung
379406[mdznr]: https: // github.com/apple/swift-algorithms/commits?author=mdznr
380407[michiboo]: https: // github.com/apple/swift-algorithms/commits?author=michiboo
381408[mpangburn]: https: // github.com/apple/swift-algorithms/commits?author=mpangburn
0 commit comments