Module:Learn Lua: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
p = {} | |||
p.loop = function(frame) | |||
local out = {} | |||
for idx = 1, 5 do | |||
table.insert(out, idx) | |||
end | |||
return table.concat(out, "<br>") | |||
end | end | ||
return p | return p | ||
Revision as of 22:18, 25 November 2025
Documentation for this module may be created at Module:Learn Lua/doc
p = {}
p.loop = function(frame)
local out = {}
for idx = 1, 5 do
table.insert(out, idx)
end
return table.concat(out, "<br>")
end
return p