@@ -685,7 +685,7 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
685
685
686
686
def map [B ](f : A => B ): CC [B ]^ {this , f} = iterableFactory.from(new View .Map (this , f))
687
687
688
- def flatMap [B ](f : A => IterableOnce [B ]): CC [B ]^ {this , f} = iterableFactory.from(new View .FlatMap (this , f))
688
+ def flatMap [B ](f : A => IterableOnce [B ]^ ): CC [B ]^ {this , f} = iterableFactory.from(new View .FlatMap (this , f))
689
689
690
690
def flatten [B ](implicit asIterable : A -> IterableOnce [B ]): CC [B ]^ {this } = flatMap(asIterable)
691
691
@@ -714,8 +714,8 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
714
714
* and the second one made of those wrapped in [[scala.util.Right ]].
715
715
*/
716
716
def partitionMap [A1 , A2 ](f : A => Either [A1 , A2 ]): (CC [A1 ]^ {this , f}, CC [A2 ]^ {this , f}) = {
717
- val left : View [A1 ]^ {f} = new LeftPartitionMapped (this , f)
718
- val right : View [A2 ]^ {f} = new RightPartitionMapped (this , f)
717
+ val left : View [A1 ]^ {f, this } = new LeftPartitionMapped (this , f)
718
+ val right : View [A2 ]^ {f, this } = new RightPartitionMapped (this , f)
719
719
(iterableFactory.from(left), iterableFactory.from(right))
720
720
}
721
721
@@ -788,8 +788,8 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
788
788
* half of each element pair of this $coll.
789
789
*/
790
790
def unzip [A1 , A2 ](implicit asPair : A -> (A1 , A2 )): (CC [A1 ]^ {this }, CC [A2 ]^ {this }) = {
791
- val first : View [A1 ] = new View .Map [A , A1 ](this , asPair(_)._1)
792
- val second : View [A2 ] = new View .Map [A , A2 ](this , asPair(_)._2)
791
+ val first : View [A1 ]^ { this } = new View .Map [A , A1 ](this , asPair(_)._1)
792
+ val second : View [A2 ]^ { this } = new View .Map [A , A2 ](this , asPair(_)._2)
793
793
(iterableFactory.from(first), iterableFactory.from(second))
794
794
}
795
795
@@ -815,9 +815,9 @@ trait IterableOps[+A, +CC[_], +C] extends Any with IterableOnce[A] with Iterable
815
815
* third member of each element triple of this $coll.
816
816
*/
817
817
def unzip3 [A1 , A2 , A3 ](implicit asTriple : A -> (A1 , A2 , A3 )): (CC [A1 ]^ {this }, CC [A2 ]^ {this }, CC [A3 ]^ {this }) = {
818
- val first : View [A1 ] = new View .Map [A , A1 ](this , asTriple(_)._1)
819
- val second : View [A2 ] = new View .Map [A , A2 ](this , asTriple(_)._2)
820
- val third : View [A3 ] = new View .Map [A , A3 ](this , asTriple(_)._3)
818
+ val first : View [A1 ]^ { this } = new View .Map [A , A1 ](this , asTriple(_)._1)
819
+ val second : View [A2 ]^ { this } = new View .Map [A , A2 ](this , asTriple(_)._2)
820
+ val third : View [A3 ]^ { this } = new View .Map [A , A3 ](this , asTriple(_)._3)
821
821
(iterableFactory.from(first), iterableFactory.from(second), iterableFactory.from(third))
822
822
}
823
823
0 commit comments