What is the difference between using &
in these two cases?
Calling
fun1
:fun1(&toproc)
In function definition:
def fun1(&toblock) # ... end
Is it that when receiving a parameter with &toblock
it is converted to a Proc
and for the other case it is converted to a block?