Difference between revisions 89 and 141 on wikimaniawiki{{multiReplace|{{Tfm/dated|page={{PAGENAME}}|otherpage=Table|link=Wikipedia:Templates for discussion/Log/2018 May 13#Module:Table|bigbox=yes}}|template|module|Template:|Module:}} {{high-risk|2,462,622 pages, which is 6% of all}} {{module rating|protected}}⏎ #REDIRECT [[Module:TableTools/doc]] This module includes a number of functions for dealing with Lua tables. It is a meta-module, meant to be called from other Lua modules, and should not be called directly from #invoke. == Loading the module == To use any of the functions, first you must load the module. (contracted; show full)e, for the table {{code|code={foo = 'foo', bar = 'bar'}|lang=lua}}, size will return <code>2</code>. The function will also work on arrays, but for arrays it is more efficient to use the # operator. Note that to find the table size, this function uses the [[mw:Extension:Scribunto/Lua reference manual#pairs|pairs]] function to iterate through all of the table keys.<includeonly>{{Sandbox other|| [[Category:Lua metamodules|TableTools, {{PAGENAME}}]] }}</includeonly> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://wikimania.wikimedia.org/w/index.php?diff=prev&oldid=141.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|