Quick question. I wanted to go about calling a function while yielding another in order to shorten up code, like so:
--NOTE: This is just an example, and has no real practical uses
--f represents function #1
function example(conditional)
local var = 0
if conditional then
var = f(var)
else
var = f(var+1)
end
return var
end
Though I didn't know if declaring function f listed above in the scope of the function example would be more efficient than in the global scope.

2 comments
I don't understand the question. You never declared "function f".
Read the script comment. "f represents function #1". Just imagine f is declared somewhere. What I'm asking is what scope I should define it in.