mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Nest some additional operators (#9646)
This commit is contained in:
@@ -103,20 +103,18 @@ extension LazySequenceProtocol {
|
||||
public struct LazyDropWhileIndex<Base : Collection> : Comparable {
|
||||
/// The position corresponding to `self` in the underlying collection.
|
||||
public let base: Base.Index
|
||||
}
|
||||
|
||||
public func == <Base>(
|
||||
lhs: LazyDropWhileIndex<Base>,
|
||||
rhs: LazyDropWhileIndex<Base>
|
||||
) -> Bool {
|
||||
return lhs.base == rhs.base
|
||||
}
|
||||
public static func == (
|
||||
lhs: LazyDropWhileIndex, rhs: LazyDropWhileIndex
|
||||
) -> Bool {
|
||||
return lhs.base == rhs.base
|
||||
}
|
||||
|
||||
public func < <Base>(
|
||||
lhs: LazyDropWhileIndex<Base>,
|
||||
rhs: LazyDropWhileIndex<Base>
|
||||
) -> Bool {
|
||||
return lhs.base < rhs.base
|
||||
public static func < (
|
||||
lhs: LazyDropWhileIndex, rhs: LazyDropWhileIndex
|
||||
) -> Bool {
|
||||
return lhs.base < rhs.base
|
||||
}
|
||||
}
|
||||
|
||||
% for Traversal in ['Forward', 'Bidirectional']:
|
||||
|
||||
Reference in New Issue
Block a user