Thanks. I should point out that in my original post, the fact that the function name was "f" in the first example and "someFunc" in the second was just a typo on my part.
I did not even notice the typo in the original post You conveyed the problem you were seeing very clearly, so I was focussing on that. I am glad I did not miss anything to important.