Module:FunList/Sandbox/doc: Difference between revisions

Line 339: Line 339:
---@param keySelector? fun(current: any, index: any): any
---@param keySelector? fun(current: any, index: any): any
---@return table
---@return table
function Enumerator3:toSet(keySelector)
function Enumerator3.toSet(self, keySelector)
</syntaxhighlight>
</syntaxhighlight>


Line 347: Line 347:
---@param self table
---@param self table
---@return table
---@return table
function Enumerator3:toTable()
function Enumerator3.toTable(self)
</syntaxhighlight>
</syntaxhighlight>


Line 358: Line 358:
---@param elementSelector? fun(value: any, index: any): any
---@param elementSelector? fun(value: any, index: any): any
---@return table
---@return table
function Enumerator3:toLookup(keySelector, elementSelector)
function Enumerator3.toLookup(self, keySelector, elementSelector)
</syntaxhighlight>
</syntaxhighlight>


Line 368: Line 368:
---@param elementSelector? fun(value: any, key: any): any
---@param elementSelector? fun(value: any, key: any): any
---@return table
---@return table
function Enumerator3:toDictionary(keySelector, elementSelector)
function Enumerator3.toDictionary(self, keySelector, elementSelector)
</syntaxhighlight>
</syntaxhighlight>


Line 376: Line 376:
---@param self any
---@param self any
---@return any
---@return any
function Enumerator3:deepCopy()
function Enumerator3.deepCopy(self)
</syntaxhighlight>
</syntaxhighlight>


2,875

edits