Thursday, 22 August 2013

Function in Corona

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:
      
local function f ()
--body
end

local f = function()
--body
end

function f ()
--body
end

f = function ()
--body
end

No comments:

Post a Comment