Curried function in scala
问题 I have a definition of next methods: def add1(x: Int, y: Int) = x + y def add2(x: Int)(y: Int) = x + y the second one is curried version of first one. Then if I want to partially apply second function I have to write val res2 = add2(2) _ . Everything is fine. Next I want add1 function to be curried. I write val curriedAdd = (add1 _).curried Am I right that curriedAdd is similiar to add2 ? But when I try to partially apply curriedAdd in a such way val resCurried = curriedAdd(4) _ I get a