val sum: (Int, Int) => Int = (x, y) => x + y val curriedSum: Int => Int => Int = x => y => x + y curriedSum(1)(2) shouldBe 3