12
12
13
13
/// A collection wrapper that provides access to the elements of a collection,
14
14
/// indexed by a set of indices.
15
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
15
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
16
16
@frozen
17
17
public struct DiscontiguousSlice < Base: Collection > {
18
18
/// The collection that the indexed collection wraps.
@@ -22,7 +22,7 @@ public struct DiscontiguousSlice<Base: Collection> {
22
22
public var subranges : RangeSet < Base . Index >
23
23
}
24
24
25
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
25
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
26
26
extension DiscontiguousSlice {
27
27
/// A position in an `DiscontiguousSlice`.
28
28
@frozen
@@ -39,10 +39,10 @@ extension DiscontiguousSlice {
39
39
}
40
40
}
41
41
42
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
42
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
43
43
extension DiscontiguousSlice . Index : Hashable where Base. Index: Hashable { }
44
44
45
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
45
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
46
46
extension DiscontiguousSlice : Collection {
47
47
public typealias SubSequence = Self
48
48
@@ -83,7 +83,7 @@ extension DiscontiguousSlice: Collection {
83
83
}
84
84
}
85
85
86
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
86
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
87
87
extension DiscontiguousSlice {
88
88
public var count : Int {
89
89
var c = 0
@@ -102,7 +102,7 @@ extension DiscontiguousSlice {
102
102
}
103
103
}
104
104
105
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
105
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
106
106
extension DiscontiguousSlice : BidirectionalCollection
107
107
where Base: BidirectionalCollection
108
108
{
@@ -122,7 +122,7 @@ extension DiscontiguousSlice: BidirectionalCollection
122
122
}
123
123
}
124
124
125
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
125
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
126
126
extension DiscontiguousSlice : MutableCollection where Base: MutableCollection {
127
127
public subscript( i: Index ) -> Base . Element {
128
128
get {
@@ -145,7 +145,7 @@ extension Collection {
145
145
/// - Returns: A collection of the elements at the positions in `subranges`.
146
146
///
147
147
/// - Complexity: O(1)
148
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
148
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
149
149
public subscript( subranges: RangeSet < Index > ) -> DiscontiguousSlice < Self > {
150
150
DiscontiguousSlice ( base: self , subranges: subranges)
151
151
}
@@ -162,7 +162,7 @@ extension MutableCollection {
162
162
/// - Complexity: O(1) to access the elements, O(*m*) to mutate the
163
163
/// elements at the positions in `subranges`, where *m* is the number of
164
164
/// elements indicated by `subranges`.
165
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
165
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
166
166
public subscript( subranges: RangeSet < Index > ) -> DiscontiguousSlice < Self > {
167
167
get {
168
168
DiscontiguousSlice ( base: self , subranges: subranges)
@@ -196,7 +196,7 @@ extension Collection {
196
196
/// - Returns: A collection of the elements that are not in `subranges`.
197
197
///
198
198
/// - Complexity: O(*n*), where *n* is the length of the collection.
199
- @available ( macOS 10 . 16 , iOS 14 . 0 , watchOS 7 . 0 , tvOS 14 . 0 , * )
199
+ @available ( macOS 9999 , iOS 9999 , watchOS 9999 , tvOS 9999 , * )
200
200
public func removingSubranges(
201
201
_ subranges: RangeSet < Index >
202
202
) -> DiscontiguousSlice < Self > {
0 commit comments