@@ -72,7 +72,7 @@ sealed trait Tuple extends Any {
72
72
val u = that.asInstanceOf [Tuple2 [_, _]]
73
73
Tuple4 (t._1, t._2, u._1, u._2).asInstanceOf [Result ]
74
74
case _ =>
75
- genericConcat [Result ](this , that). asInstanceOf [ Result ]
75
+ knowTupleFromArray [Result ](this .toArray ++ that.toArray)
76
76
}
77
77
case Some (3 ) =>
78
78
val t = asInstanceOf [Tuple3 [_, _, _]]
@@ -82,19 +82,16 @@ sealed trait Tuple extends Any {
82
82
val u = that.asInstanceOf [Tuple1 [_]]
83
83
Tuple4 (t._1, t._2, t._3, u._1).asInstanceOf [Result ]
84
84
case _ =>
85
- genericConcat [Result ](this , that). asInstanceOf [ Result ]
85
+ knowTupleFromArray [Result ](this .toArray ++ that.toArray)
86
86
}
87
87
case Some (_) =>
88
88
if (constValue[BoundedSize [that.type ]] == 0 ) this .asInstanceOf [Result ]
89
- else genericConcat [Result ](this , that). asInstanceOf [ Result ]
89
+ else knowTupleFromArray [Result ](this .toArray ++ that.toArray)
90
90
case None =>
91
91
runtime.DynamicTuple .dynamic_++ [This , that.type ](this , that)
92
92
}
93
93
}
94
94
95
- inline def genericConcat [T <: Tuple ](xs : Tuple , ys : Tuple ): Tuple =
96
- knowTupleFromArray[T ](xs.toArray ++ ys.toArray)
97
-
98
95
inline def size [This >: this .type <: Tuple ]: Size [This ] = {
99
96
type Result = Size [This ]
100
97
inline constValueOpt[BoundedSize [this .type ]] match {
0 commit comments