Skip to content

Commit 3814b7a

Browse files
committed
Update the changelog
1 parent 740721a commit 3814b7a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,13 @@ Note: This is in reverse chronological order, so newer entries are added to the
33
Swift 3.0
44
---------
55

6+
* [SE-0045](https://github.com/apple/swift-evolution/blob/master/proposals/0045-scan-takewhile-dropwhile.md)
7+
8+
The `Sequence` protocol now includes two new members, `take(while:)` and
9+
`drop(while:)`. `take(while:)` is used to request the longest subsequence
10+
satisfying a predicate. `drop(while:)` is used to request the subsequence
11+
remaining after dropping the longest subsequence satisfying a predicate.
12+
613
* [SE-0136](https://github.com/apple/swift-evolution/blob/master/proposals/0136-memory-layout-of-values.md) and [SE-0101](https://github.com/apple/swift-evolution/blob/master/proposals/0101-standardizing-sizeof-naming.md)
714

815
The functions `sizeof()`, `strideof()`, and `alignof()` have been removed.

stdlib/private/StdlibCollectionUnittest/LoggingWrappers.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ public struct ${Self}<
266266
}
267267

268268
public func drop(
269-
while predicate: @noescape (Base.Iterator.Element) throws -> Bool
269+
while predicate: (Base.Iterator.Element) throws -> Bool
270270
) rethrows -> SubSequence {
271271
Log.dropWhile[selfType] += 1
272272
return try base.drop(while: predicate)
@@ -278,7 +278,7 @@ public struct ${Self}<
278278
}
279279

280280
public func prefix(
281-
while predicate: @noescape (Base.Iterator.Element) throws -> Bool
281+
while predicate: (Base.Iterator.Element) throws -> Bool
282282
) rethrows -> SubSequence {
283283
Log.prefixWhile[selfType] += 1
284284
return try base.prefix(while: predicate)

stdlib/public/core/Collection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ extension Collection {
13301330
///
13311331
/// - Complexity: O(*n*), where *n* is the length of the collection.
13321332
public func drop(
1333-
while predicate: @noescape (Iterator.Element) throws -> Bool
1333+
while predicate: (Iterator.Element) throws -> Bool
13341334
) rethrows -> SubSequence {
13351335
var start = startIndex
13361336
while try start != endIndex && predicate(self[start]) {
@@ -1374,7 +1374,7 @@ extension Collection {
13741374
///
13751375
/// - Complexity: O(*n*), where *n* is the length of the collection.
13761376
public func prefix(
1377-
while predicate: @noescape (Iterator.Element) throws -> Bool
1377+
while predicate: (Iterator.Element) throws -> Bool
13781378
) rethrows -> SubSequence {
13791379
var end = startIndex
13801380
while try end != endIndex && predicate(self[end]) {

0 commit comments

Comments
 (0)