Anonymous
Not logged in
Create account
Log in
Search
Module:FunList/Sandbox/doc: Difference between revisions
From Melvor Idle
Namespaces
Module
Discussion
More
More
Page actions
Read
View source
History
← 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
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Contributing
Contribute to this wiki
Maintenance
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
User page tools
More
Printable version