added CBV vs CBN worksheet

This commit is contained in:
2025-02-18 15:07:32 +01:00
parent 8104d1fff1
commit 49b921a814

10
src/Lesson1/CBV_vs_CBN.sc Normal file
View File

@ -0,0 +1,10 @@
def firstCBV(x: Int, y: Int): Int = x
def firstCBN(x: Int, y: => Int): Int = x
def loop: Int = loop
firstCBV(4, 5)
firstCBN(4, 5)
firstCBN(4, loop)
//firstCBV(4, loop)