From 49b921a814fdcadd2606fd4b25d02f8f28dcd8f0 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Tue, 18 Feb 2025 15:07:32 +0100 Subject: [PATCH] added CBV vs CBN worksheet --- src/Lesson1/CBV_vs_CBN.sc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/Lesson1/CBV_vs_CBN.sc diff --git a/src/Lesson1/CBV_vs_CBN.sc b/src/Lesson1/CBV_vs_CBN.sc new file mode 100644 index 0000000..d385f10 --- /dev/null +++ b/src/Lesson1/CBV_vs_CBN.sc @@ -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)