Using functions are very eazy in Lua.We can provide arguments as input (within the parentheses), the function performs some tasks, and the results can be returned.
Some ways to define functions are:
Some ways to define functions are:
local function f () --body end local f = function() --body end function f () --body end f = function () --body end
Comments
Post a Comment