@@ -16,6 +16,47 @@ package updates, you can specify your package dependency using
16
16
17
17
---
18
18
19
+ ## [ 0.0.3] - 2021-02-26
20
+
21
+ ### Additions
22
+
23
+ An exciting group of new algorithms, contributed by the community:
24
+
25
+ - ` trimming(while:) ` returns a subsequence of a bidirectional collection with
26
+ the matching elements removed from the start and end. ([ #4 ] )
27
+ - ` min(ofCount:) ` and ` max(ofCount:) ` find the smallest or largest elements in
28
+ a collection. ([ #9 ] , [ #77 ] )
29
+ - ` windows(ofCount:) ` lets you iterate over all the overlapping subsequences of
30
+ a particular length. ([ #20 ] )
31
+ - ` striding(by:) ` iterates over every * n* th element of a sequence or collection.
32
+ ([ #24 ] )
33
+ - ` interspersed(with:) ` places a new element between every pair of elements in
34
+ a sequence or collection. ([ #35 ] )
35
+ - ` chunks(ofCount:) ` breaks a collection into subsequences of the given number
36
+ of elements. ([ #54 ] )
37
+ - ` suffix(while:) ` matches the standard library's ` prefix(while:) ` , by
38
+ returning the suffix of all matching elements from a bidirectional collection.
39
+ ([ #65 ] )
40
+ - Variations of ` combinations(ofCount:) ` and ` permutations(ofCount:) ` that take
41
+ a range expression as a parameter, returning combinations and permutations of
42
+ multiple lengths. ([ #51 ] , [ #56 ] )
43
+
44
+ ### Changes
45
+
46
+ - The ` LazyChunked ` type now precomputes its ` startIndex ` , making performance
47
+ more predictable when using the collection.
48
+
49
+ ### Fixes
50
+
51
+ - ` randomSample(count:) ` no longer traps in rare circumstances.
52
+ - Index calculations have been improved in a variety of collection wrappers.
53
+ - A variety of documentation improvements and corrections.
54
+
55
+ The 0.0.3 release includes contributions from [ benrimmington] , [ danielctull] ,
56
+ [ dhruvshah8] , [ karwa] , [ LucianoPAlmeida] , [ markuswntr] , [ mdznr] , [ michiboo] ,
57
+ [ natecook1000] , [ ollieatkinson] , [ rakaramos] , [ rockbruno] , [ Roshankumar350] ,
58
+ [ sidepelican] , and [ timvermeulen] . Thank you!
59
+
19
60
## [ 0.0.2] - 2020-10-23
20
61
21
62
### Changes
@@ -32,7 +73,7 @@ package updates, you can specify your package dependency using
32
73
33
74
### Fixes
34
75
35
- - Swift Algorithms now builds under SwiftPM on Windows.
76
+ - ` Algorithms ` now builds under SwiftPM on Windows.
36
77
- A wide variety of errors, misspellings, and ommissions in the documentation
37
78
and guides have been fixed.
38
79
- Index/distance calculations for the ` Product2 ` and ` Chain ` types have been
@@ -44,6 +85,7 @@ The 0.0.2 release includes contributions from [AustinConlon], [egorzhdan],
44
85
[ IanKeen] , [ iSame7] , [ karwa] , [ kylemacomber] , [ natecook1000] , [ nordicio] ,
45
86
[ pmtao] , [ schlagelk] , [ stephentyrone] , and [ timvermeulen] . Thank you!
46
87
88
+
47
89
## [ 0.0.1] - 2020-10-07
48
90
49
91
- ** Swift Algorithms** initial release.
@@ -54,23 +96,47 @@ This changelog's format is based on [Keep a Changelog](https://keepachangelog.co
54
96
55
97
<!-- Link references for releases -->
56
98
57
- [ Unreleased ] : https://github.com/apple/swift-algorithms/compare/0.0.2...HEAD
99
+ [ Unreleased ] : https://github.com/apple/swift-algorithms/compare/0.0.3...HEAD
100
+ [ 0.0.3 ] : https://github.com/apple/swift-algorithms/compare/0.0.2...0.0.3
58
101
[ 0.0.2 ] : https://github.com/apple/swift-algorithms/compare/0.0.1...0.0.2
59
102
[ 0.0.1 ] : https://github.com/apple/swift-algorithms/releases/tag/0.0.1
60
103
61
104
<!-- Link references for pull requests -->
62
105
106
+ [ #4 ] : https://github.com/apple/swift-algorithms/pull/4
107
+ [ #9 ] : https://github.com/apple/swift-algorithms/pull/9
108
+ [ #20 ] : https://github.com/apple/swift-algorithms/pull/20
109
+ [ #24 ] : https://github.com/apple/swift-algorithms/pull/24
110
+ [ #35 ] : https://github.com/apple/swift-algorithms/pull/35
111
+ [ #51 ] : https://github.com/apple/swift-algorithms/pull/51
112
+ [ #54 ] : https://github.com/apple/swift-algorithms/pull/54
113
+ [ #56 ] : https://github.com/apple/swift-algorithms/pull/56
114
+ [ #65 ] : https://github.com/apple/swift-algorithms/pull/65
115
+ [ #77 ] : https://github.com/apple/swift-algorithms/pull/77
116
+
63
117
<!-- Link references for contributors -->
64
118
65
119
[ AustinConlon ] : https://github.com/apple/swift-algorithms/commits?author=AustinConlon
120
+ [ benrimmington ] : https://github.com/apple/swift-algorithms/commits?author=benrimmington
121
+ [ danielctull ] : https://github.com/apple/swift-algorithms/commits?author=danielctull
122
+ [ dhruvshah8 ] : https://github.com/apple/swift-algorithms/commits?author=dhruvshah8
66
123
[ egorzhdan ] : https://github.com/apple/swift-algorithms/commits?author=egorzhdan
67
124
[ IanKeen ] : https://github.com/apple/swift-algorithms/commits?author=IanKeen
68
125
[ iSame7 ] : https://github.com/apple/swift-algorithms/commits?author=iSame7
69
126
[ karwa ] : https://github.com/apple/swift-algorithms/commits?author=karwa
70
127
[ kylemacomber ] : https://github.com/apple/swift-algorithms/commits?author=kylemacomber
128
+ [ LucianoPAlmeida ] : https://github.com/apple/swift-algorithms/commits?author=LucianoPAlmeida
129
+ [ markuswntr ] : https://github.com/apple/swift-algorithms/commits?author=markuswntr
130
+ [ mdznr ] : https://github.com/apple/swift-algorithms/commits?author=mdznr
131
+ [ michiboo ] : https://github.com/apple/swift-algorithms/commits?author=michiboo
71
132
[ natecook1000 ] : https://github.com/apple/swift-algorithms/commits?author=natecook1000
72
133
[ nordicio ] : https://github.com/apple/swift-algorithms/commits?author=nordicio
134
+ [ ollieatkinson ] : https://github.com/apple/swift-algorithms/commits?author=ollieatkinson
73
135
[ pmtao ] : https://github.com/apple/swift-algorithms/commits?author=pmtao
136
+ [ rakaramos ] : https://github.com/apple/swift-algorithms/commits?author=rakaramos
137
+ [ rockbruno ] : https://github.com/apple/swift-algorithms/commits?author=rockbruno
138
+ [ Roshankumar350 ] : https://github.com/apple/swift-algorithms/commits?author=Roshankumar350
74
139
[ schlagelk ] : https://github.com/apple/swift-algorithms/commits?author=schlagelk
140
+ [ sidepelican ] : https://github.com/apple/swift-algorithms/commits?author=sidepelican
75
141
[ stephentyrone ] : https://github.com/apple/swift-algorithms/commits?author=stephentyrone
76
142
[ timvermeulen ] : https://github.com/apple/swift-algorithms/commits?author=timvermeulen
0 commit comments