Inserting new values into a <span class="searchmatch">table</span> using a local "index" variable, which is incremented each time, is faster than using "<span class="searchmatch">table</span>.insert(t, x)" or "t[#t +...
'"' elseif t == "<span class="searchmatch">table</span>" then local str_<span class="searchmatch">table</span> = {} <span class="searchmatch">table</span>.insert(str_<span class="searchmatch">table</span>, " {") for key, val in require("Module:<span class="searchmatch">table</span>").sortedPairs(value...
cc-by-sa 3.0 local function <span class="searchmatch">table</span>Merge(t1, t2, overwrite) for k,v in pairs(t2) do if type(v) == "<span class="searchmatch">table</span>" and type(t1[k]) == "<span class="searchmatch">table</span>" then -- since type(t1[k])...
return html<span class="searchmatch">Table</span> end --- Returns a tabular data page as a wikitext <span class="searchmatch">table</span>. --- Usage: {{#invoke:Tabular data | wikitable | <span class="searchmatch">Table</span> name }} function...
return parts[1] end return <span class="searchmatch">table</span>.concat(parts, "&nbsp;") end for _, spec in ipairs(specs) do if type(spec) ~= "<span class="searchmatch">table</span>" then spec = {spec = spec}...
local p = {} -- Openingstag voor alle tabellen in de broodkruimel p.<span class="searchmatch">table</span> = '<<span class="searchmatch">table</span> cellspacing="1" cellpadding="0">' -- Curly dinges voor achter vertakkingen...
= 1, #syls do <span class="searchmatch">table</span>.insert(newWord, <span class="searchmatch">table</span>.concat(allSyl[sylId])) end text = gsub(text, (gsub(originalWord, "%-", "%-")), <span class="searchmatch">table</span>.concat(newWord, "%-")...
]] local <span class="searchmatch">table</span>ToJsonArrayStr <span class="searchmatch">table</span>ToJsonArrayStr = function (a<span class="searchmatch">Table</span>) local str = '' for i, v in ipairs(a<span class="searchmatch">Table</span>) do -- can't use <span class="searchmatch">table</span>.concal w/...
numeric indexes in a <span class="searchmatch">table</span>, -- so that the values are tightly packed like in a normal Lua <span class="searchmatch">table</span>. local remove_holes = require("Module:<span class="searchmatch">table</span>").compressSparseArray...
unpack ----- M E M O I Z A T I O N----- -- Memoizes a function or callable <span class="searchmatch">table</span>. -- Supports any number of arguments and return values. -- If the optional...