2,875
edits
No edit summary |
No edit summary |
||
Line 106: | Line 106: | ||
if enumerator:moveNext() == true then | if enumerator:moveNext() == true then | ||
local sourceElement = enumerator.current | local sourceElement = enumerator.current | ||
self.index = enumerator.index -- Preserve index | |||
self.position = self.position + 1 | self.position = self.position + 1 | ||
self.current = self.selector(sourceElement, self.position) | self.current = self.selector(sourceElement, self.position) |
edits