I probably should have posted this thread in ‘internals’ rather than ‘general usage’.
Is there a way to compile away a step in a calculation internal to some function called in a closure but without manually decomposing the function into its constituent calculations within the closure?
Is it currently possible for the Julia compiler, on first method call, to precalculate things within f(x,y) given X ? If so, how can this be achieved (e.g., is there some macro, like @inline, that would do this)? If not, is this something that could be feasibly accomplished in a later version of Julia?