Files
FunProg-Scala/src/Lesson2/Curryfication.sc
2025-03-03 17:04:55 +01:00

7 lines
128 B
Scala

def mul(x: Int, y: Int): Int = x * y
def mulCurry(x: Int) = (y :Int) => x * y
def mulCurryScala(x: Int)(y: Int): Int = x * y