added lesson 2

This commit is contained in:
2025-03-03 17:04:55 +01:00
parent 31629ac479
commit f66fdac8b4
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
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