Anonymous

Module:FunList/Iterators: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 105: Line 105:
local sourceElement = enumerator.current
local sourceElement = enumerator.current
self.position = self.position + 1
self.position = self.position + 1
self.current = selector(sourceElement, self.position)
self.current = self.selector(sourceElement, self.position)
assert(self.current, 'Selected value must be non-nil')
return true
return true
end
end
2,875

edits