Skip to content

Commit cfa4490

Browse files
Update library/src/scala/Tuple.scala
Co-Authored-By: Nicolas Stucki <[email protected]>
1 parent 174f6e9 commit cfa4490

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/scala/Tuple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ object Tuple {
123123
runtime.DynamicTuple.dynamicFromProduct[Tuple](product)
124124

125125
def fromProductTyped[P <: Product](p: P) given (m: scala.deriving.Mirror.ProductOf[P]): m.MirroredElemTypes =
126-
Tuple.fromArray(p.productIterator.toArray).asInstanceOf[m.MirroredElemTypes]
126+
Tuple.fromArray(p.productIterator.toArray).asInstanceOf[m.MirroredElemTypes] // TODO use toIArray of Object to avoid double/triple array copy
127127
}
128128

129129
/** Tuple of arbitrary non-zero arity */

0 commit comments

Comments
 (0)