最初のフォームが機能し、2番目のフォームが機能しない論理的な理由は何ですか?関数リテラルでcurryingが機能しないのはなぜですか?
scala> val d = (a: Int, b: Int) => a + b
d: (Int, Int) => Int = <function2>
scala> val d = (a: Int)(b: Int) => a + b
<console>:1: error: not a legal formal parameter.
Note: Tuples cannot be directly destructured in method or function parameters.
Either create a single parameter accepting the Tuple1,
or consider a pattern matching anonymous function: `{ case (param1, param1) => ... }
val d=(a:Int)(b:Int)=>a+b
'ヴァルさd =(:INT)=>(B:INT)=> A + B' – jwvh