Changes

Jump to navigation Jump to search

Module:TableTools

158 bytes added, 13:06, 12 March 2019
Implementing talk page edit requested
-- a different value when there are gaps in the array portion of the table.
-- Intended to be used on data loaded with mw.loadData. For other tables, use #.
-- Note: #frame.args in frame object always be set to 0, regardless of
-- the number of unnamed template parameters, so use this function for
-- frame.args.
--]]
function p.length(t)
local i = 01 repeatwhile t[i] ~= nil do
i = i + 1
until t[i] == nilend
return i - 1
end
Anonymous user

Navigation menu