Skip to content

Commit 6fb80ed

Browse files
committed
Remove unnecessary constraint.
1 parent 650d9ba commit 6fb80ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/LazySplitCollection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ extension LazySplitCollection: LazySequenceProtocol {
165165
}
166166
}
167167

168-
extension LazyCollectionProtocol where Elements.Index == Index {
168+
extension LazyCollectionProtocol {
169169
/// Lazily returns the longest possible subsequences of the collection, in order,
170170
/// that don't contain elements satisfying the given predicate.
171171
///
@@ -258,7 +258,7 @@ extension LazyCollectionProtocol where Elements.Index == Index {
258258
}
259259

260260
extension LazyCollectionProtocol
261-
where Element: Equatable, Elements.Index == Index {
261+
where Element: Equatable {
262262
/// Lazily returns the longest possible subsequences of the collection, in order,
263263
/// around elements equal to the given element.
264264
///

0 commit comments

Comments
 (0)