added lesson 2
This commit is contained in:
6
src/Lesson2/Curryfication.sc
Normal file
6
src/Lesson2/Curryfication.sc
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user