Created
July 9, 2014 14:32
-
-
Save mkusher/2d918c18a342a80ccb1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lazy val x = { | |
print("(computing x) ") | |
//Doing some stuff... | |
42 | |
} | |
print("first") | |
println(x) | |
print("second") | |
println(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment