Module:FunList/Enumerator

< Module:FunList
Revision as of 19:38, 26 July 2024 by Ricewind (talk | contribs) (Created page with "--- 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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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