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