Jump to content

Module:Example of lua debugging

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jmarchn (talk | contribs) at 16:39, 22 October 2019 (Created page with 'local p = {} p.Hello = 'Hello' function p.calc(num) return num end function p.sum_mult(num) return num + num, num * num end function p.mtable(num) retur...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

local p = {}
p.Hello = 'Hello'
function p.calc(num)
   return num
end
function p.sum_mult(num)
   return num + num, num * num
end
function p.mtable(num)
   return {num, num+1}
end
return p