[stdlib] indexing model: a missed next(_) for HashedCollections

This commit is contained in:
Dave Abrahams
2016-03-16 16:46:11 -07:00
parent f49ea36820
commit 2d7e068401

View File

@@ -1049,7 +1049,7 @@ public struct Dictionary<Key : Hashable, Value> :
// TODO: swift-3-indexing-model - add docs
@warn_unused_result
public func next(i: Index) -> Index {
fatalError("FIXME: swift-3-indexing-model implement")
return i.successor()
}
/// Returns the `Index` for the given key, or `nil` if the key is not