Hi @peterH!
I see two things:
- You renamed “delay” to “wait”, but are still calling “delay(…)”
The “hide(5)” calls the function immediately and returns the result of that function (which is nil
). It’s not a reference to the function. If you compare it to @britzl’s example, you see that he passes in the function references, not the return values of the functions.
I’m not sure what a good way of passing extra values would be in this case. Do you have a specific use case you are trying to solve?