Reputation: 5977
What is the idiomatic scala way to force computation on lazy value?
Upvotes: 9
Views: 3128
Reputation: 62835
Just call it:
lazy val x = someOperation() // ... x
Upvotes: 16