mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
fleshing out Collection.next(Index)
-removed fatal stub Collection.next(Index) -added default Collection.next(Index) where Index is Strideable -added custom next(Index) on some collections -added fatal stub next(Index) on some collections
This commit is contained in:
@@ -116,6 +116,12 @@ extension String {
|
||||
return Index(_core.endIndex, _core)
|
||||
}
|
||||
|
||||
// TODO: swift-3-indexing-model - add docs
|
||||
@warn_unused_result
|
||||
public func next(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