Skip to content

Commit 8d18300

Browse files
authored
Add optional confornmances (#3)
1 parent 8154dbe commit 8d18300

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/IndexedCollection/IndexedCollection.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ extension IndexedCollection.Element: Identifiable where Base.Element: Identifiab
7171
}
7272
}
7373

74+
extension IndexedCollection.Element: Hashable where Base.Element: Hashable, Base.Index: Hashable {}
75+
76+
extension IndexedCollection.Element: Equatable where Base.Element: Equatable {}
77+
7478
#if canImport(SwiftUI)
7579
import SwiftUI
7680

0 commit comments

Comments
 (0)