This commit is contained in:
Gwendal Roué committed 2018-01-18 12:54:02 +01:00
1 parent 8c7895d8ab
commit 4fe2b2542f
1 file changed
+1 -20
+1 -20
View File
@@ -738,7 +738,7 @@ extension Row : ExpressibleByDictionaryLiteral {
}
}
extension Row : Collection {
extension Row : RandomAccessCollection {
// MARK: - Row as a Collection of (ColumnName, DatabaseValue) Pairs
@@ -761,25 +761,6 @@ extension Row : Collection {
impl.columnName(atUncheckedIndex: index),
impl.databaseValue(atUncheckedIndex: index))
}
/// Returns the index immediately after `i`.
///
/// - Precondition: `(startIndex..<endIndex).contains(i)`
public func index(after i: RowIndex) -> RowIndex {
return RowIndex(i.index + 1)
}
}
extension Row: BidirectionalCollection {
/// Returns the index immediately before `i`.
///
/// - Precondition: i must be greater than startIndex
public func index(before i: RowIndex) -> RowIndex {
return RowIndex(i.index - 1)
}
}
extension Row: RandomAccessCollection {
}
/// Row adopts Equatable.