Anonymous

Module:FunList/Sandbox/doc: Difference between revisions

From Melvor Idle
Line 133: Line 133:
=== sort ===
=== sort ===
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
---Boilerplate function to setup various sorting Enumerator3
function Enumerator3:sort()
---@param self Enumerator3
---@param isDecending boolean
---@param selector? fun(current: any): any
---@return Enumerator3
local function getSorter(self, isDecending, selector)
</syntaxhighlight>
</syntaxhighlight>


2,875

edits