Question : currying scala
Answered by : crazy-crane-8vz4qgjxy98i
val sum: (Int, Int) => Int = (x, y) => x + y
val curriedSum: Int => Int => Int = x => y => x + y
curriedSum(1)(2) shouldBe 3
Source : https://www.baeldung.com/scala/currying | Last Update : Mon, 05 Jul 21