@@ -81,7 +81,7 @@ public class SequenceLog {
81
81
public static var map = TypeIndexed ( 0 )
82
82
public static var filter = TypeIndexed ( 0 )
83
83
public static var forEach = TypeIndexed ( 0 )
84
- public static var find = TypeIndexed ( 0 )
84
+ public static var first = TypeIndexed ( 0 )
85
85
public static var dropFirst = TypeIndexed ( 0 )
86
86
public static var dropLast = TypeIndexed ( 0 )
87
87
public static var prefixMaxLength = TypeIndexed ( 0 )
@@ -114,7 +114,6 @@ public class CollectionLog : SequenceLog {
114
114
public static var isEmpty = TypeIndexed ( 0 )
115
115
public static var count = TypeIndexed ( 0 )
116
116
public static var _customIndexOfEquatableElement = TypeIndexed ( 0 )
117
- public static var first = TypeIndexed ( 0 )
118
117
public static var advance = TypeIndexed ( 0 )
119
118
public static var advanceLimit = TypeIndexed ( 0 )
120
119
public static var distance = TypeIndexed ( 0 )
@@ -245,11 +244,11 @@ public struct ${Self}<
245
244
try base. forEach ( body)
246
245
}
247
246
248
- public func find (
249
- where predicate: @noescape ( Base . Iterator. Element) throws -> Void
247
+ public func first (
248
+ where predicate: @noescape ( Base . Iterator. Element) throws -> Bool
250
249
) rethrows -> Base . Iterator . Element ? {
251
- Log . find [ selfType] += 1
252
- return try base. find ( where: predicate)
250
+ Log . first [ selfType] += 1
251
+ return try base. first ( where: predicate)
253
252
}
254
253
255
254
public typealias SubSequence = Base . SubSequence
0 commit comments