Module:FunList: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 166: Line 166:
end
end


function funlist:prepend(item)
function funlist:concat(tbl)
assert(item)
assert(type(tbl) == 'table')
local newtbl = {}
    for k, v in pairs(tbl) do
table.insert(newtbl, item)
    self.mytable[k] = v
table.move(self.mytable, 1, #self.mytable, 2, newtbl)
    end
self.mytable = newtbl
    return self
return self
end
end


2,875

edits