Skip to content

Commit bdd3b38

Browse files
committed
Remove redundant match type
1 parent 8a51a38 commit bdd3b38

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

library/src/scala/Tuple.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ object Tuple {
114114
* (F[A1], ..., F[An]), but not `(F[A1], B2, ..., F[An])` where B2 does not
115115
* have the shape of `F[A]`.
116116
*/
117-
type IsMappedBy[F[_]] = [X <: Tuple] =>> X <:< IsMappedByImpl[X, F]
118-
type IsMappedByImpl[X <: Tuple, F[_]] <: Tuple = X match {
119-
case F[x] *: t => F[x] *: IsMappedByImpl[t, F]
120-
case Unit => Unit
121-
}
117+
type IsMappedBy[F[_]] = [X <: Tuple] =>> X <:< Map[InverseMap[X, F], F]
122118

123119
/** Convert an array into a tuple of unknown arity and types */
124120
def fromArray[T](xs: Array[T]): Tuple = {

0 commit comments

Comments
 (0)