Eliminate a number of uses of the *Indexable protocols.

This commit is contained in:
Doug Gregor
2017-09-15 16:38:21 -07:00
parent fb253b182a
commit 42968b2069
3 changed files with 9 additions and 9 deletions

View File

@@ -371,7 +371,7 @@ public struct IndexSet : ReferenceConvertible, Equatable, BidirectionalCollectio
public func intersects(integersIn range: CountableClosedRange<Element>) -> Bool { return self.intersects(integersIn: Range(range)) }
// MARK: -
// Indexable
// Collection
public func index(after i: Index) -> Index {
if i.value + 1 == i.extent.upperBound {