@@ -44,8 +44,8 @@ extension Product2: Sequence {
44
44
}
45
45
46
46
@inlinable
47
- public mutating func next( ) -> ( element1 : Base1 . Element ,
48
- element2 : Base2 . Element ) ? {
47
+ public mutating func next( ) -> ( Base1 . Element ,
48
+ Base2 . Element ) ? {
49
49
// This is the initial state, where i1.next() has never
50
50
// been called, or the final state, where i1.next() has
51
51
// already returned nil.
@@ -58,7 +58,7 @@ extension Product2: Sequence {
58
58
// Get the next element from the second sequence, if not
59
59
// at end.
60
60
if let element2 = i2. next ( ) {
61
- return ( element1: element1! , element2 : element2)
61
+ return ( element1! , element2)
62
62
}
63
63
64
64
// We've reached the end of the second sequence, so:
@@ -71,7 +71,7 @@ extension Product2: Sequence {
71
71
72
72
i2 = base2. makeIterator ( )
73
73
if let element2 = i2. next ( ) {
74
- return ( element1: element1 , element2 : element2)
74
+ return ( element1, element2)
75
75
} else {
76
76
return nil
77
77
}
@@ -122,9 +122,9 @@ extension Product2: Collection where Base1: Collection {
122
122
}
123
123
124
124
@inlinable
125
- public subscript( position: Index ) -> ( element1 : Base1 . Element ,
126
- element2 : Base2 . Element ) {
127
- ( element1 : base1 [ position. i1] , element2 : base2 [ position. i2] )
125
+ public subscript( position: Index ) -> ( Base1 . Element ,
126
+ Base2 . Element ) {
127
+ ( base1 [ position. i1] , base2 [ position. i2] )
128
128
}
129
129
130
130
/// Forms an index from a pair of base indices, normalizing
0 commit comments