added lesson 7
This commit is contained in:
6
src/Lesson7/LazyEvaluation.sc
Normal file
6
src/Lesson7/LazyEvaluation.sc
Normal file
@@ -0,0 +1,6 @@
|
||||
val expr = {
|
||||
val x = {print("x"); 1}
|
||||
lazy val y = {print("y"); 2}
|
||||
def z = {print("z"); 3}
|
||||
z + y + x + z + y + x
|
||||
}
|
||||
Reference in New Issue
Block a user