@@ -465,7 +465,7 @@ self =>
465
465
def split : Seq [IterableSplitter [S ]] = self.split.map { _ map f }
466
466
}
467
467
468
- override def map [S ](f : T => S ) = new Mapped (f)
468
+ override def map [S ](f : T => S ): Mapped [ S ] = new Mapped [ S ] (f)
469
469
470
470
class Appended [U >: T , PI <: IterableSplitter [U ]](protected val that : PI ) extends IterableSplitter [U ] {
471
471
signalDelegate = self.signalDelegate
@@ -500,7 +500,7 @@ self =>
500
500
}
501
501
}
502
502
503
- def zipParSeq [S ](that : SeqSplitter [S ]) = new Zipped (that)
503
+ def zipParSeq [S ](that : SeqSplitter [S ]): Zipped [ S ] = new Zipped (that)
504
504
505
505
class ZippedAll [U >: T , S ](protected val that : SeqSplitter [S ], protected val thiselem : U , protected val thatelem : S )
506
506
extends IterableSplitter [(U , S )] {
@@ -513,13 +513,13 @@ self =>
513
513
514
514
def remaining = self.remaining max that.remaining
515
515
def dup : IterableSplitter [(U , S )] = self.dup.zipAllParSeq(that, thiselem, thatelem)
516
- def split : Seq [IterableSplitter [(U , S )]] = {
516
+ def split : Seq [SeqSplitter [(U , S )]] = {
517
517
val selfrem = self.remaining
518
518
val thatrem = that.remaining
519
519
val thisit = if (selfrem < thatrem) self.appendParIterable[U , SeqSplitter [U ]](repetition[U ](thiselem, thatrem - selfrem).splitter) else self
520
520
val thatit = if (selfrem > thatrem) that.appendParSeq(repetition(thatelem, selfrem - thatrem).splitter) else that
521
521
val zipped = thisit zipParSeq thatit
522
- zipped.split
522
+ zipped.split. asInstanceOf [ Seq [ SeqSplitter [( U , S )]]]
523
523
}
524
524
}
525
525
@@ -578,7 +578,7 @@ self =>
578
578
def psplit (sizes : Int * ): Seq [SeqSplitter [S ]] = self.psplit(sizes : _* ).map { _ map f }
579
579
}
580
580
581
- override def map [S ](f : T => S ) = new RemainsIteratorMapped (f)
581
+ override def map [S ](f : T => S ): RemainsIteratorMapped [ S ] = new RemainsIteratorMapped (f)
582
582
583
583
class RemainsIteratorAppended [U >: T , PI <: SeqSplitter [U ]](it : PI ) extends Appended [U , PI ](it) with SeqSplitter [U ] {
584
584
override def dup = super .dup.asInstanceOf [SeqSplitter [U ]]
@@ -614,7 +614,7 @@ self =>
614
614
class RemainsIteratorZipped [S ](ti : SeqSplitter [S ]) extends Zipped [S ](ti) with SeqSplitter [(T , S )] {
615
615
override def dup = super .dup.asInstanceOf [SeqSplitter [(T , S )]]
616
616
override def split : Seq [SeqSplitter [(T , S )]] = super .split.asInstanceOf [Seq [SeqSplitter [(T , S )]]]
617
- def psplit (szs : Int * ) = (self.psplit(szs : _* ) zip that.psplit(szs : _* )) map { p => p._1 zipParSeq p._2 }
617
+ def psplit (szs : Int * ) = (self.psplit(szs : _* ) zip that.psplit(szs : _* )) map { p => ( p._1 zipParSeq p._2). asInstanceOf [ SeqSplitter [( T , S )]] }
618
618
}
619
619
620
620
override def zipParSeq [S ](that : SeqSplitter [S ]) = new RemainsIteratorZipped (that)
@@ -631,11 +631,11 @@ self =>
631
631
override def split : Seq [SeqSplitter [(U , S )]] = {
632
632
val (thisit, thatit) = patchem
633
633
val zipped = thisit zipParSeq thatit
634
- zipped.split
634
+ zipped.split. asInstanceOf [ Seq [ SeqSplitter [( U , S )]]]
635
635
}
636
636
def psplit (sizes : Int * ): Seq [SeqSplitter [(U , S )]] = {
637
637
val (thisit, thatit) = patchem
638
- val zipped = thisit zipParSeq thatit
638
+ val zipped = ( thisit zipParSeq thatit). asInstanceOf [ SeqSplitter [( U , S )]]
639
639
zipped.psplit(sizes : _* )
640
640
}
641
641
}
0 commit comments