Module:FunList/Iterators: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 59: Line 59:


function TableEnumerator.new(tbl)
function TableEnumerator.new(tbl)
assert(tbl, 'Table value cannot be nil')
     local self = setmetatable(Enumerator.new(), TableEnumerator)
     local self = setmetatable(Enumerator.new(), TableEnumerator)
     self.tbl = tbl
     self.tbl = tbl
2,875

edits