Skip to content

Commit 62abcb4

Browse files
committed
Add conditional conformances for Equatable and Hashable.
1 parent 952afb0 commit 62abcb4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/Algorithms/Cycle.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ extension FiniteCycle: BidirectionalCollection
153153
}
154154

155155
extension FiniteCycle: RandomAccessCollection
156-
where Base: RandomAccessCollection { }
156+
where Base: RandomAccessCollection {}
157+
158+
extension FiniteCycle: Equatable where Base: Equatable {}
159+
extension FiniteCycle: Hashable where Base: Hashable {}
157160

158161
//===----------------------------------------------------------------------===//
159162
// cycled()

0 commit comments

Comments
 (0)