当具有带类型参数的case类时,我看不到如何调用该tupled方法.它似乎与apply和找到unapply.
scala> case class Foo[T](x:T, y:T)
defined class Foo
scala> Foo.apply[Int] _
res1: (Int, Int) => Foo[Int] = <function2>
scala> Foo.unapply[Int] _
res2: Foo[Int] => Option[(Int, Int)] = <function1>
scala> Foo.tupled[Int] _
<console>:10: error: value tupled is not a member of object Foo
Foo.tupled[Int] _
^
Run Code Online (Sandbox Code Playgroud)
对于发生了什么有什么想法?