Suppose I have the following code example in Scala:
def myfunc = {
println("hello")
10
}
val myParam = myfunc
When this code runs, myfunc is executed, meaning that the console will print "hello" and myfunc will return the value of 10.
Let's say that I want myParam to hold the function myfunc without invoking it. How can I do it?