Answers for "currying scala"

0

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
Posted by: Guest on June-28-2021

Browse Popular Code Answers by Language