Модуль:TableTools/документація: відмінності між версіями
[перевірена версія] | [перевірена версія] |
Вилучено вміст Додано вміст
м категоризація |
Немає опису редагування |
||
Рядок 1:
{{підсторінка документації}}
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.
Рядок 87 ⟶ 88:
</source>
Finds the size of a key/value pair table. For example, 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>{{#ifeq:{{SUBPAGENAME}}|пісочниця|| [[Категорія:Метамодулі Lua|{{PAGENAME}}]]
}}</includeonly>
|