File tree Expand file tree Collapse file tree 5 files changed +13
-8
lines changed Expand file tree Collapse file tree 5 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,7 @@ extension Chain: BidirectionalCollection
250
250
251
251
extension Chain : RandomAccessCollection
252
252
where Base1: RandomAccessCollection , Base2: RandomAccessCollection { }
253
+ extension Chain : LazySequenceProtocol where Base1: LazySequenceProtocol { }
253
254
254
255
extension Chain : Equatable where Base1: Equatable , Base2: Equatable { }
255
256
extension Chain : Hashable where Base1: Hashable , Base2: Hashable { }
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ extension Combinations: Sequence {
111
111
}
112
112
}
113
113
114
+ extension Combinations : LazySequenceProtocol where Base: LazySequenceProtocol { }
114
115
extension Combinations : Equatable where Base: Equatable { }
115
116
extension Combinations : Hashable where Base: Hashable { }
116
117
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ extension Cycle: Sequence {
38
38
}
39
39
}
40
40
41
+ extension Cycle : LazySequenceProtocol where Base: LazySequenceProtocol { }
42
+
41
43
//===----------------------------------------------------------------------===//
42
44
// cycled()
43
45
//===----------------------------------------------------------------------===//
@@ -71,13 +73,7 @@ extension Collection {
71
73
public func cycled( ) -> Cycle < Self > {
72
74
Cycle ( base: self )
73
75
}
74
- }
75
-
76
- //===----------------------------------------------------------------------===//
77
- // repeated(count:)
78
- //===----------------------------------------------------------------------===//
79
-
80
- extension Collection {
76
+
81
77
/// Returns a sequence that repeats the elements of this collection the
82
78
/// specified number of times.
83
79
///
Original file line number Diff line number Diff line change @@ -56,9 +56,14 @@ extension Indexed: BidirectionalCollection where Base: BidirectionalCollection {
56
56
}
57
57
58
58
extension Indexed : RandomAccessCollection where Base: RandomAccessCollection { }
59
+ extension Indexed : LazySequenceProtocol where Base: LazySequenceProtocol { }
59
60
extension Indexed : Equatable where Base: Equatable { }
60
61
extension Indexed : Hashable where Base: Hashable { }
61
62
63
+ //===----------------------------------------------------------------------===//
64
+ // indexed()
65
+ //===----------------------------------------------------------------------===//
66
+
62
67
extension Collection {
63
68
/// Returns a collection of pairs *(i, x)*, where *i* represents an index of
64
69
/// the collection, and *x* represents an element.
Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ extension Permutations: Sequence {
129
129
}
130
130
}
131
131
132
+ extension Permutations : LazySequenceProtocol where Base: LazySequenceProtocol { }
133
+
132
134
//===----------------------------------------------------------------------===//
133
135
// nextPermutation(by:)
134
136
//===----------------------------------------------------------------------===//
@@ -177,7 +179,7 @@ extension MutableCollection
177
179
}
178
180
179
181
//===----------------------------------------------------------------------===//
180
- // permutations(count :)
182
+ // permutations(ofCount :)
181
183
//===----------------------------------------------------------------------===//
182
184
183
185
extension Collection {
You can’t perform that action at this time.
0 commit comments