Module:Sandbox/Alexiscoutinho/Lua set: Revision history


For any version listed below, click on its date to view it. For more help, see Help:Page history and Help:Edit summary. (cur) = difference from current version, (prev) = difference from preceding version, m = minor edit, → = section edit, ← = automatic edit summary

26 March 2024

28 August 2022

  • curprev 21:1121:11, 28 August 2022 Alexiscoutinho talk contribs 10,204 bytes +1,768 Implemented hash collision handling by adding a function hash table and, most importantly, by greatly improving the internal data representation with "_elements" and "_elements_obj". Improved valid element check. Converted "_get", "_set" and "_del" to normal methods. Optimized some methods by using "_get" instead of "has". undo

4 October 2021

29 July 2021

27 July 2021

24 July 2021

  • curprev 23:5623:56, 24 July 2021 Alexiscoutinho talk contribs 8,275 bytes +42 Fixed hashable checking undo
  • curprev 22:2722:27, 24 July 2021 Alexiscoutinho talk contribs 8,233 bytes +8,233 Created page with 'require('Module:Lua class') local libraryUtil = require('libraryUtil') local TableTools = require('Module:TableTools/sandbox') -- Note: hash collisions are not handled yet frozenset = class('frozenset', { __init = function (self, args) local elements = {} if #args == 0 then -- for performance self._elements = elements return elseif #args == 1 then local arg = args[1] if type(arg) == 'string' then for i = 1, mw.ustring.len(arg) do...'