first/contains(predicate) => first/contains(where: predicate)

This commit is contained in:
Dave Abrahams
2016-06-07 16:08:31 -07:00
parent 60f66a65eb
commit 5a5f19aa45
4 changed files with 8 additions and 8 deletions

View File

@@ -505,7 +505,7 @@ extension Sequence {
/// - Returns: `true` if the sequence contains an element that satisfies
/// `predicate`; otherwise, `false`.
public func contains(
_ predicate: @noescape (${GElement}) throws -> Bool
where predicate: @noescape (${GElement}) throws -> Bool
) rethrows -> Bool {
for e in self {
if try predicate(e) {