Module:Sandbox/RexxS/Print explained

--

p =

p.loop = function(frame) local out =

for idx = 1, 5 do table.insert(out, idx) end

return table.concat(out, "
")end

p.first = function(frame) local out =

for idx, val in ipairs(frame.args) do s = mw.ustring.sub(val, 1, 1) out[#out + 1] = s -- this does the same job as table.insert end

return table.concat(out, "
")end

return p