mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fleshed out BidirectionalCollection previous(Index) and friends
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user