2,875
edits
No edit summary |
|||
Line 210: | Line 210: | ||
---@param predicate? fun(value: any, key: any): boolean | ---@param predicate? fun(value: any, key: any): boolean | ||
---@return any | ---@return any | ||
function Enumerator3 | function Enumerator3.first(self, predicate) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 220: | Line 220: | ||
---@param defaultValue? any | ---@param defaultValue? any | ||
---@return any | ---@return any | ||
function Enumerator3 | function Enumerator3.lastOrDefault(self, predicate, defaultValue) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 229: | Line 229: | ||
---@param predicate? fun(value: any, key: any): boolean | ---@param predicate? fun(value: any, key: any): boolean | ||
---@return any | ---@return any | ||
function Enumerator3 | function Enumerator3.last(self, predicate) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 237: | Line 237: | ||
---@param self table | ---@param self table | ||
---@return integer | ---@return integer | ||
function Enumerator3 | function Enumerator3.count(self) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 246: | Line 246: | ||
---@param predicate fun(value: any, key: any): any | ---@param predicate fun(value: any, key: any): any | ||
---@return integer | ---@return integer | ||
function Enumerator3 | function Enumerator3.countBy(self, predicate) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 255: | Line 255: | ||
---@param predicate fun(current: any, index: any): boolean | ---@param predicate fun(current: any, index: any): boolean | ||
---@return boolean | ---@return boolean | ||
function Enumerator3 | function Enumerator3.all(self, oredicate) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 264: | Line 264: | ||
---@param predicate? fun(current: any, index: any): boolean | ---@param predicate? fun(current: any, index: any): boolean | ||
---@return boolean | ---@return boolean | ||
function Enumerator3 | function Enumerator3.any(self, predicate) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
edits