Skip to content

Commit bc54cdf

Browse files
committed
Replace the deprecated CountableRange with Range
1 parent 7d68f81 commit bc54cdf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Basic/OrderedSet.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
public struct OrderedSet<E: Hashable>: Equatable, Collection {
1414
public typealias Element = E
1515
public typealias Index = Int
16+
#if swift(>=4.2)
17+
public typealias Indices = Range<Int>
18+
#else
1619
public typealias Indices = CountableRange<Int>
20+
#endif
1721

1822
private var array: [Element]
1923
private var set: Set<Element>

0 commit comments

Comments
 (0)