@@ -233,7 +233,7 @@ extension FlattenCollection.Index : Comparable {
233
233
extension FlattenCollection . Index : Hashable
234
234
where Base. Index : Hashable , Base. Element. Index : Hashable {
235
235
public var hashValue : Int {
236
- return _mixInt ( _inner? . hashValue ?? 0 ) ^ _outer. hashValue
236
+ return _combineHashValues ( _inner? . hashValue ?? 0 , _outer. hashValue)
237
237
}
238
238
}
239
239
@@ -517,36 +517,6 @@ extension Collection where Element : Collection {
517
517
}
518
518
}
519
519
520
- extension BidirectionalCollection where Element : BidirectionalCollection {
521
- /// Returns the elements of this collection of collections, concatenated.
522
- ///
523
- /// In this example, an array of three ranges is flattened so that the
524
- /// elements of each range can be iterated in turn.
525
- ///
526
- /// let ranges = [0..<3, 8..<10, 15..<17]
527
- ///
528
- /// // A for-in loop over 'ranges' accesses each range:
529
- /// for range in ranges {
530
- /// print(range)
531
- /// }
532
- /// // Prints "0..<3"
533
- /// // Prints "8..<10"
534
- /// // Prints "15..<17"
535
- ///
536
- /// // Use 'joined()' to access each element of each range:
537
- /// for index in ranges.joined() {
538
- /// print(index, terminator: " ")
539
- /// }
540
- /// // Prints: "0 1 2 8 9 15 16"
541
- ///
542
- /// - Returns: A flattened view of the elements of this
543
- /// collection of collections.
544
- @_inlineable // FIXME(sil-serialize-all)
545
- public func joined( ) -> FlattenCollection < Self > {
546
- return FlattenCollection ( self )
547
- }
548
- }
549
-
550
520
extension LazyCollectionProtocol
551
521
where Self : Collection , Element : Collection {
552
522
/// A concatenation of the elements of `self`.
@@ -556,15 +526,6 @@ extension LazyCollectionProtocol
556
526
}
557
527
}
558
528
559
- extension LazyCollectionProtocol
560
- where Self : BidirectionalCollection , Element : BidirectionalCollection {
561
- /// A concatenation of the elements of `self`.
562
- @_inlineable // FIXME(sil-serialize-all)
563
- public func joined( ) -> LazyCollection < FlattenCollection < Elements > > {
564
- return FlattenCollection ( elements) . lazy
565
- }
566
- }
567
-
568
529
// @available(*, deprecated, renamed: "FlattenCollection.Index")
569
530
public typealias FlattenCollectionIndex < T> = FlattenCollection < T > . Index where T : Collection, T. Element : Collection
570
531
@available ( * , deprecated, renamed: " FlattenCollection.Index " )
0 commit comments