User contributions for Ricewind
From Melvor Idle
26 July 2024
- 19:5719:57, 26 July 2024 diff hist +2,209 N Module:FunList/TableEnumerator Created page with "---A lightweight enumerator for tables in array form. ---@class ArrayEnumerator : Enumerator ---@field _tbl table ---@field current any ---@field index integer local ArrayEnumerator = {} ArrayEnumerator.__index = ArrayEnumerator function ArrayEnumerator.new(tbl) assert(tbl) local self = setmetatable({}, ArrayEnumerator) self._tbl = tbl self.current = nil self.index = 0 return self end function ArrayEnumerator:moveNext() local index = self.i..." current
- 19:5219:52, 26 July 2024 diff hist +2,521 N Module:FunList/Lookup Created page with "local Enumerable = require('Module:Enumerable') local TableEnumerator = require('Module:TableEnumerator') ---@class Grouping : Enumerable ---@field key any ---@field elements table ---@field count integer local Grouping = setmetatable({}, { __index = Enumerable }) Grouping.__index = Grouping ---@return Grouping function Grouping.new(key) assert(key, 'key may not be nil') local self = setmetatable({}, Grouping) self.key = key self.elements = {} self.count..."
- 19:4819:48, 26 July 2024 diff hist +364 N Module:FunList/EnumerableExtensions/doc Created page with "Contains all shorthand functions that convert one Enumerable object into another. Most of these functions can be chained together to result in a state machine that captures all of the applied functions. The state machine is only executed once a pairs or ipairs operator is applied to the state machine, or by manually progressing the Module:FunList/Enumerator."
- 19:4519:45, 26 July 2024 diff hist +1,527 Module:FunList/EnumerableExtensions No edit summary
- 19:3819:38, 26 July 2024 diff hist +10,579 N Module:FunList/EnumerableExtensions Created page with "local Enumerable = require('Module:Enumerable') local Iterators = require('Module:Iterators') -- Helper function to check if objects are equal. local function isEqual(obj1, obj2) local type1 = type(obj1) local type2 = type(obj2) if type1 ~= type2 then return false end if type1 == "number" or type1 == "string" or type1 == "boolean" then return obj1 == obj2 elseif type1 == "table" then if #obj1 ~= #obj2 then retur..."
- 19:3819:38, 26 July 2024 diff hist +429 N Module:FunList/Enumerator Created page with "--- Interface definition for state object that allows enumeration. --- This interface definition really only exists to make VSCode shut up. --- @class Enumerator --- @field current any --- @field index any local Enumerator = {} Enumerator.__index = Enumerator --- @return boolean function Enumerator:moveNext() error('Abstract function') end function Enumerator:finalize() error('Abstract function') end return Enumerator" current
- 19:3719:37, 26 July 2024 diff hist +248 N Module:FunList/Enumerable/doc Created page with "Implementation of the base Enumerable class. This class and its inheritants map the Lua pairs and ipairs functions to a state machine. Inheritants must implement the '''getEnumerator''' function that returns an Module:FunList/Enumerator object." current
- 19:3319:33, 26 July 2024 diff hist +1,279 N Module:FunList/Enumerable Created page with "-- Makes the class that inherits this enumerable with pairs and ipairs --- @class Enumerable local Enumerable = {} local Enumerable_mt = { __index = Enumerable, __pairs = Enumerable.getPairs, __ipairs = Enumerable.getiPairs } function Enumerable.new() local self = setmetatable({}, Enumerable_mt) return self end --- Enumerate all elements --- @param isArray? boolean --- @return Enumerator function Enumerable:getEnumerator(isArray) error("This method must be implem..." current
- 19:3319:33, 26 July 2024 diff hist +11,579 Module:FunList/Iterators No edit summary
- 19:3219:32, 26 July 2024 diff hist 0 m Module:FunList/Iterators Ricewind moved page Module:FunList/Enumerators to Module:FunList/Iterators without leaving a redirect
- 12:5712:57, 26 July 2024 diff hist −408 Scripting and Extensions →List of Independent Tools current
- 00:1200:12, 26 July 2024 diff hist +14 Skill Points No edit summary
23 July 2024
- 20:3920:39, 23 July 2024 diff hist −50 Module:FunList/Sandbox No edit summary
- 20:3720:37, 23 July 2024 diff hist +11,301 Module:FunList/Iterators No edit summary
- 13:4213:42, 23 July 2024 diff hist +14 The Abyss No edit summary
- 13:4213:42, 23 July 2024 diff hist +13 Template:Otheruses No edit summary
- 13:3913:39, 23 July 2024 diff hist 0 m The Abyss (disambiguation) Ricewind moved page The Abyss (Disambiguation) to The Abyss (disambiguation) without leaving a redirect
22 July 2024
- 22:5022:50, 22 July 2024 diff hist +4 Maple Logs No edit summary current
- 17:5317:53, 22 July 2024 diff hist −293 Module:Calculator/AgilityObstacle Add support for more currencies current
- 00:2000:20, 22 July 2024 diff hist −237 Module:FunList/Sandbox No edit summary
- 00:1700:17, 22 July 2024 diff hist −10 Module:FunList/Iterators No edit summary
- 00:1000:10, 22 July 2024 diff hist +1,943 Module:FunList/Iterators Add ConcatEnumerator
21 July 2024
- 23:4723:47, 21 July 2024 diff hist −18 Module:FunList/Iterators Finally added support for ipairs
- 23:4623:46, 21 July 2024 diff hist +149 Module:FunList/Iterators No edit summary
- 23:3423:34, 21 July 2024 diff hist +10 Module:FunList/Iterators No edit summary
- 23:2923:29, 21 July 2024 diff hist +69 Module:FunList/Iterators No edit summary
- 23:2423:24, 21 July 2024 diff hist +123 Module:FunList/Iterators No edit summary
- 23:1223:12, 21 July 2024 diff hist +417 Module:FunList/Iterators No edit summary
- 22:5922:59, 21 July 2024 diff hist −143 Module:FunList/Iterators No edit summary
- 22:5322:53, 21 July 2024 diff hist −175 Module:FunList/Iterators No edit summary
- 22:4922:49, 21 July 2024 diff hist +16 Module:FunList/Iterators No edit summary
- 22:4822:48, 21 July 2024 diff hist +620 Module:FunList/Iterators No edit summary
- 22:3322:33, 21 July 2024 diff hist −197 Module:FunList/Iterators No edit summary
- 22:3222:32, 21 July 2024 diff hist +42 Module:FunList/Iterators No edit summary
- 22:3122:31, 21 July 2024 diff hist +9 Module:FunList/Iterators No edit summary
- 22:3022:30, 21 July 2024 diff hist +34 Module:FunList/Iterators No edit summary
- 22:2622:26, 21 July 2024 diff hist +51 Module:FunList/Iterators No edit summary
- 22:2422:24, 21 July 2024 diff hist +31 Module:FunList/Iterators No edit summary
- 22:2222:22, 21 July 2024 diff hist −42 Module:FunList/Iterators No edit summary
- 22:2122:21, 21 July 2024 diff hist +114 Module:FunList/Iterators No edit summary
- 22:1322:13, 21 July 2024 diff hist +94 Module:FunList/Iterators No edit summary
- 20:1820:18, 21 July 2024 diff hist +383 Module:FunList/Iterators No edit summary
- 19:4219:42, 21 July 2024 diff hist +2,204 Module:FunList/Iterators Add SelectManyEnumerator
- 18:3518:35, 21 July 2024 diff hist +1 Module:FunList/Iterators No edit summary
- 18:3418:34, 21 July 2024 diff hist +1,025 Module:FunList/Iterators Add WhereEnumerator
- 18:2518:25, 21 July 2024 diff hist +51 Module:FunList/Iterators No edit summary
- 18:2318:23, 21 July 2024 diff hist +55 Module:FunList/Iterators No edit summary
- 18:1018:10, 21 July 2024 diff hist +63 Module:FunList/Iterators No edit summary
- 18:0718:07, 21 July 2024 diff hist +41 Module:FunList/Iterators No edit summary
- 18:0718:07, 21 July 2024 diff hist +1 Module:FunList/Iterators No edit summary