File tree Expand file tree Collapse file tree 1 file changed +4
-23
lines changed Expand file tree Collapse file tree 1 file changed +4
-23
lines changed Original file line number Diff line number Diff line change @@ -259,7 +259,10 @@ extension Sequence {
259
259
}
260
260
}
261
261
262
- return _tupleMap ( ( lhs, rhs) , { Array ( $0) } )
262
+ return (
263
+ Array ( lhs) ,
264
+ Array ( rhs)
265
+ )
263
266
}
264
267
}
265
268
@@ -352,25 +355,3 @@ extension Collection {
352
355
)
353
356
}
354
357
}
355
-
356
- //===----------------------------------------------------------------------===//
357
- // _tupleMap(_:_:)
358
- //===----------------------------------------------------------------------===//
359
-
360
- /// Returns a tuple containing the results of mapping the given closure over
361
- /// each of the tuple’s elements.
362
- /// - Parameters:
363
- /// - x: The tuple to transform
364
- /// - transform: A mapping closure. `transform` accepts an element of this
365
- /// sequence as its parameter and returns a transformed
366
- /// - Returns: A tuple containing the transformed elements of this tuple.
367
- @usableFromInline
368
- internal func _tupleMap< T, U> (
369
- _ x: ( T , T ) ,
370
- _ transform: ( T ) throws -> U
371
- ) rethrows -> ( U , U ) {
372
- return (
373
- try transform ( x. 0 ) ,
374
- try transform ( x. 1 )
375
- )
376
- }
You can’t perform that action at this time.
0 commit comments