@@ -39,14 +39,14 @@ extension Collection {
3939 /// `RandomAccessCollection`, otherwise O(*k*) where `k` is `count`.
4040 /// Access to successive windows is O(1).
4141 @inlinable
42- public func windows( ofCount count: Int ) -> WindowsCollection < Self > {
43- WindowsCollection ( base: self , windowSize: count)
42+ public func windows( ofCount count: Int ) -> WindowsOfCountCollection < Self > {
43+ WindowsOfCountCollection ( base: self , windowSize: count)
4444 }
4545}
4646
4747/// A collection wrapper that presents a sliding window over the elements of
4848/// a collection.
49- public struct WindowsCollection < Base: Collection > {
49+ public struct WindowsOfCountCollection < Base: Collection > {
5050 @usableFromInline
5151 internal let base : Base
5252
@@ -66,8 +66,8 @@ public struct WindowsCollection<Base: Collection> {
6666 }
6767}
6868
69- extension WindowsCollection : Collection {
70- /// A position in a `WindowsCollection ` instance.
69+ extension WindowsOfCountCollection : Collection {
70+ /// A position in a `WindowsOfCountCollection ` instance.
7171 public struct Index : Comparable {
7272 @usableFromInline
7373 internal var lowerBound : Base . Index
@@ -331,7 +331,7 @@ extension WindowsCollection: Collection {
331331 }
332332}
333333
334- extension WindowsCollection : BidirectionalCollection
334+ extension WindowsOfCountCollection : BidirectionalCollection
335335 where Base: BidirectionalCollection
336336{
337337 @inlinable
@@ -351,10 +351,10 @@ extension WindowsCollection: BidirectionalCollection
351351 }
352352}
353353
354- extension WindowsCollection : RandomAccessCollection
354+ extension WindowsOfCountCollection : RandomAccessCollection
355355 where Base: RandomAccessCollection { }
356356
357- extension WindowsCollection : LazySequenceProtocol , LazyCollectionProtocol
357+ extension WindowsOfCountCollection : LazySequenceProtocol , LazyCollectionProtocol
358358 where Base: LazySequenceProtocol { }
359359
360- extension WindowsCollection . Index : Hashable where Base. Index: Hashable { }
360+ extension WindowsOfCountCollection . Index : Hashable where Base. Index: Hashable { }
0 commit comments