@@ -374,8 +374,8 @@ public func == <C1: Collection, C2: Collection>(
374
374
% Self = " Concatenated " + Collection
375
375
376
376
/// A concatenation of two collections with the same element type.
377
- public struct ${ Self} < C1 : ${ Collection} , C2 : ${ Collection}
378
- where C1 . Iterator. Element == C2 . Iterator. Element> : $ { Collection } {
377
+ public struct ${ Self} < C1 : ${ Collection} , C2 : ${ Collection} > : $ { Collection }
378
+ where C1 . Iterator. Element == C2 . Iterator. Element {
379
379
380
380
init ( _base1: C1 , base2: C2 ) {
381
381
self . _base1 = _base1
@@ -488,8 +488,8 @@ public struct ${Self}<C1 : ${Collection}, C2: ${Collection}
488
488
/// first collection and then the elements of the second collection.
489
489
func concatenate<
490
490
C1 : ${ Collection} , C2 : ${ Collection}
491
- where C1 . Iterator . Element == C2 . Iterator . Element
492
- > ( _ first : C1 , _ second : C2 ) -> $ { Self } < C 1 , C 2 > {
491
+ > ( _ first : C1 , _ second : C2 ) -> $ { Self } < C 1 , C2 >
492
+ where C 1 . Iterator . Element == C2 . Iterator . Element {
493
493
return ${ Self} ( _base1: first, base2: second)
494
494
}
495
495
@@ -499,22 +499,23 @@ func concatenate<
499
499
//===----------------------------------------------------------------------===//
500
500
501
501
/// A position in a rotated collection.
502
- public struct RotatedCollectionIndex <
503
- Base : Collection where Base. SubSequence: Collection
504
- > : Comparable {
502
+ public struct RotatedCollectionIndex < Base : Collection > : Comparable
503
+ where Base. SubSequence: Collection {
505
504
internal let _index :
506
505
ConcatenatedCollectionIndex < Base . SubSequence , Base . SubSequence >
507
506
}
508
507
509
- public func < < Base: Collection where Base . SubSequence : Collection > (
508
+ public func < < Base: Collection > (
510
509
lhs: RotatedCollectionIndex < Base > , rhs: RotatedCollectionIndex < Base >
511
- ) -> Bool {
510
+ ) -> Bool
511
+ where Base. SubSequence: Collection {
512
512
return lhs. _index < rhs. _index
513
513
}
514
514
515
- public func == < Base: Collection where Base . SubSequence : Collection > (
515
+ public func == < Base: Collection > (
516
516
lhs: RotatedCollectionIndex < Base > , rhs: RotatedCollectionIndex < Base >
517
- ) -> Bool {
517
+ ) -> Bool
518
+ where Base. SubSequence: Collection {
518
519
return lhs. _index == rhs. _index
519
520
}
520
521
@@ -524,8 +525,9 @@ public func == <Base: Collection where Base.SubSequence: Collection>(
524
525
525
526
/// A rotated view onto a `${Collection}`.
526
527
public struct ${ Self} <
527
- Base : ${ Collection} where Base. SubSequence: ${ Collection}
528
- > : ${ Collection} {
528
+ Base : ${ Collection}
529
+ > : ${ Collection}
530
+ where Base. SubSequence : ${ Collection} {
529
531
let _concatenation : Concatenated ${ Collection} <
530
532
Base . SubSequence, Base. SubSequence>
531
533
0 commit comments