I want to make a problem clear, that probably has a devforum thread. However, it doesn't change the fact I can't find any solution:
-- if i have a function function test() -- can I call it from inside test() end --[[ my functions are going to be more but what are the ways one can be used... --]]
Yes, you can call a function from within the same function as long as the function holds a reference to itself (through a global or local variable).
You use/call a function by referring to the function along with an argument list ()
, so:
``` local function f(...) -- ... end
f() -- call function f f("a", 123, {}) -- pass arguments to function f ```