View source for Module:Array
MyWikiBiz, Author Your Legacy — Tuesday July 08, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local Array = {}
local array_constructor
local function load_table_module()
return require "Module:TableTools"
end
-- Copy table library so as not to unexpectedly change the behavior of code that
-- uses it.
local array_methods = mw.clone(table)
-- Create version of table.sort that returns the table.
array_methods.sort = function (t, comp)
table.sort(t, comp)
return t
end
-- ipairs and unpack operate on arrays.
array_methods.ipairs = ipairs
array_methods.unpack = unpack
000
1:0
Template used on this page:
Return to Module:Array.