You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
local args = {}
local origArgs = {}
local function deleteDuplicates(array)
local hash = {}
local res = {}
for _,v in ipairs(array) do
if (not hash[v]) then
res[#res+1] = v -- you could print here instead of saving to result table if you wanted
hash[v] = true
end
end
return res
end
-- Returns a table containing the numbers of the arguments that exist
-- for the specified prefix. For example, if the prefix was 'data', and
-- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}.
local function getArgNums(prefix)
local nums = {}
000
1:0
Template used on this page:
Return to Module:Tabs.