Open main menu
Home
Random
Log in
Settings
About Melvor Idle
Disclaimers
Search
Module:FunList/Sandbox/doc: Difference between revisions
Module
Discussion
← Older edit
Newer edit →
Module:FunList/Sandbox/doc
(view source)
Revision as of 17:34, 15 August 2024
210 bytes removed
,
15 August
→sort
Revision as of 16:07, 15 August 2024
(
view source
)
Ricewind
(
talk
|
contribs
)
(
→Functions
)
← Older edit
Revision as of 17:34, 15 August 2024
(
view source
)
Ricewind
(
talk
|
contribs
)
(
→sort
)
Newer edit →
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>
Ricewind
2,875
edits