Anonymous

Module:FunList/Sandbox/doc: Difference between revisions

From Melvor Idle
no edit summary
(Created page with "== Functions == === new === <syntaxhighlight lang="lua"> ---@param nextFunc fun(context: any, index: any):any, any ---@param index any ---@param contextFactory fun(): any ---@return Enumerator3 function Enumerator3.new(nextFunc, index, contextFactory) </syntaxhighlight> === create === <syntaxhighlight lang="lua"> ---@param obj any ---@return Enumerator3 function Enumerator3.create(obj) </syntaxhighlight> === ipairs === <syntaxhighlight lang="lua"> ---@return fun():tabl...")
 
No edit summary
Line 384: Line 384:


=== select ===
=== select ===
<syntaxhighlight lang="lua">
Alias for [[#map|Enumerator3.map]]
--- Alias for [[#map|Enumerator3.map]].
Enumerator3.select = Enumerator3.map
</syntaxhighlight>


=== selectMany ===
=== selectMany ===
<syntaxhighlight lang="lua">
Alias for [[#flatMap|Enumerator3.flatMap]]
--- Alias for [[#flatMap|Enumerator3.flatMap]].
Enumerator3.selectMany = Enumerator3.flatMap
</syntaxhighlight>


=== distinct ===
=== distinct ===
<syntaxhighlight lang="lua">
Alias for [[#unique|Enumerator3.unique]]
--- Alias for [[#unique|Enumerator3.unique]].
Enumerator3.distinct = Enumerator3.unique
</syntaxhighlight>


=== except ===
=== except ===
<syntaxhighlight lang="lua">
Alias for [[#difference|Enumerator3.difference]]
--- Alias for [[#difference|Enumerator3.difference]].
Enumerator3.except = Enumerator3.difference
</syntaxhighlight>


=== order ===
=== order ===
<syntaxhighlight lang="lua">
Alias for [[#sort|Enumerator3.sort]]
--- Alias for [[#sort|Enumerator3.sort]].
Enumerator3.order = Enumerator3.sort
</syntaxhighlight>


=== orderDecending ===
=== orderDecending ===
<syntaxhighlight lang="lua">
Alias for [[#sortDescending|Enumerator3.sortDescending]]
--- Alias for [[#sortDescending|Enumerator3.sortDescending]].
Enumerator3.orderDecending = Enumerator3.sortDescending
</syntaxhighlight>


=== orderBy ===
=== orderBy ===
<syntaxhighlight lang="lua">
Alias for [[#sortBy|Enumerator3.sortBy]]
--- Alias for [[#sortBy|Enumerator3.sortBy]].
Enumerator3.orderBy = Enumerator3.sortBy
</syntaxhighlight>


=== orderByDecending ===
=== orderByDecending ===
<syntaxhighlight lang="lua">
Alias for [[#sortByDescending|Enumerator3.sortByDescending]]
--- Alias for [[#sortByDescending|Enumerator3.sortByDescending]].
Enumerator3.orderByDecending = Enumerator3.sortByDescending
</syntaxhighlight>


=== each ===
=== each ===
<syntaxhighlight lang="lua">
Alias for [[#foreach|Enumerator3.foreach]]
--- Alias for [[#foreach|Enumerator3.foreach]].
Enumerator3.each = Enumerator3.foreach
</syntaxhighlight>


=== for_each ===
=== for_each ===
<syntaxhighlight lang="lua">
Alias for [[#foreach|Enumerator3.foreach]]
--- Alias for [[#foreach|Enumerator3.foreach]].
Enumerator3.for_each = Enumerator3.foreach
</syntaxhighlight>


=== length ===
=== length ===
<syntaxhighlight lang="lua">
Alias for [[#count|Enumerator3.count]]
--- Alias for [[#count|Enumerator3.count]].
Enumerator3.length = Enumerator3.count
</syntaxhighlight>


=== lengthBy ===
=== lengthBy ===
<syntaxhighlight lang="lua">
Alias for [[#countBy|Enumerator3.countBy]]
--- Alias for [[#countBy|Enumerator3.countBy]].
Enumerator3.lengthBy = Enumerator3.countBy
</syntaxhighlight>


=== has ===
=== has ===
<syntaxhighlight lang="lua">
Alias for [[#contains|Enumerator3.contains]]
--- Alias for [[#contains|Enumerator3.contains]].
Enumerator3.has = Enumerator3.contains
</syntaxhighlight>


=== fold ===
=== fold ===
<syntaxhighlight lang="lua">
Alias for [[#aggregate|Enumerator3.aggregate]]
--- Alias for [[#aggregate|Enumerator3.aggregate]].
Enumerator3.fold = Enumerator3.aggregate
</syntaxhighlight>


=== reduce ===
=== reduce ===
<syntaxhighlight lang="lua">
Alias for [[#aggregate|Enumerator3.aggregate]]
--- Alias for [[#aggregate|Enumerator3.aggregate]].
Enumerator3.reduce = Enumerator3.aggregate
</syntaxhighlight>
2,875

edits