fleshed out BidirectionalCollection previous(Index) and friends

This commit is contained in:
Shawn Erickson
2016-03-07 09:38:41 -08:00
parent 175c3cd136
commit 2a69d24688
4 changed files with 74 additions and 30 deletions

View File

@@ -122,6 +122,12 @@ extension String {
fatalError("FIXME: swift-3-indexing-model implement")
}
// TODO: swift-3-indexing-model - add docs
@warn_unused_result
public func previous(i: Index) -> Index {
fatalError("FIXME: swift-3-indexing-model implement")
}
/// Access the element at `position`.
///
/// - Precondition: `position` is a valid position in `self` and