Module:FunList/Enumerator
From Melvor Idle
Documentation for this module may be created at Module:FunList/Enumerator/doc
--- Interface definition for state object that allows enumeration.
--- This interface definition really only exists to make VSCode shut up.
--- @class Enumerator
--- @field current any
--- @field index any
local Enumerator = {}
Enumerator.__index = Enumerator
--- @return boolean
function Enumerator:moveNext()
error('Abstract function')
end
function Enumerator:finalize()
error('Abstract function')
end
return Enumerator