I totally agree that it is good to pass variable M to compute(). But to do that, I need to pass M to computeSomething(), which does not use M at all, and then pass it down to compute. I think it is the best to use Type and pass it as a holder of M and param.
Also I tried this
export foo
function foo(f)
function bar(b)
return b * 2
end
return f
end
and I could not access bar(). Is this snippet correct?
