Conformed Failable<RandomAccessCollection, T> type to RandomAccessCollection protocol

This commit is contained in:
Caleb Kleveter 2018-12-03 06:48:14 -06:00
parent b329cc43d4
commit b2f62e5d5f
No known key found for this signature in database
GPG Key ID: B38DBD5CF2C98D69
1 changed files with 2 additions and 0 deletions

View File

@ -34,3 +34,5 @@ extension Failable: BidirectionalCollection where T: BidirectionalCollection {
return self.value.index(before: i)
}
}
extension Failable: RandomAccessCollection where T: RandomAccessCollection {}