Ricewind
Created page with "---A lightweight enumerator for tables in array form. ---@class ArrayEnumerator : Enumerator ---@field _tbl table ---@field current any ---@field index integer local ArrayEnumerator = {} ArrayEnumerator.__index = ArrayEnumerator function ArrayEnumerator.new(tbl) assert(tbl) local self = setmetatable({}, ArrayEnumerator) self._tbl = tbl self.current = nil self.index = 0 return self end function ArrayEnumerator:moveNext() local index = self.i..."