Skip to content

Instantly share code, notes, and snippets.

@mkusher
Created July 9, 2014 14:32
Show Gist options
  • Save mkusher/2d918c18a342a80ccb1d to your computer and use it in GitHub Desktop.
Save mkusher/2d918c18a342a80ccb1d to your computer and use it in GitHub Desktop.
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