Skip to content

Commit 4708b34

Browse files
author
Tim Vermeulen
committed
Set IndexedCollection.Indices to Base.Indices
1 parent 69f29d4 commit 4708b34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Algorithms/Indexed.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ extension IndexedCollection: Collection {
6464
public func distance(from start: Base.Index, to end: Base.Index) -> Int {
6565
base.distance(from: start, to: end)
6666
}
67+
68+
@inlinable
69+
public var indices: Base.Indices {
70+
base.indices
71+
}
6772
}
6873

6974
extension IndexedCollection: BidirectionalCollection

0 commit comments

Comments
 (0)