Anonymous

Module:FunList/Iterators: Difference between revisions

From Melvor Idle
no edit summary
(Add SelectEnumerator)
No edit summary
Line 84: Line 84:


function SelectEnumerator.new(source, selector)
function SelectEnumerator.new(source, selector)
     local self = setmetatable(Enumerator.new(), TableEnumerator)
     local self = setmetatable(Enumerator.new(), SelectEnumerator)
     self.state = 0
     self.state = 0
     self.source = source
     self.source = source
2,875

edits