Anonymous user
Module:TableTools/doc: Difference between revisions
→listToSet: Now in sandbox
m (1 revision imported) |
(→listToSet: Now in sandbox) |
||
Line 148: | Line 148: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Creates a set from the array part of the table <code>''arr''</code>. Indexing the set by any of the values of the array returns <code>true</code>. For example, {{code|listToSet{ "a", "b", "c" }|lua}} yields {{code|code={ a=true, b=true, c=true }|lang=lua}} | Creates a set from the array part of the table <code>''arr''</code>. Indexing the set by any of the values of the array returns <code>true</code>. For example, {{code|listToSet{ "a", "b", "c" }|lua}} yields {{code|code={ a=true, b=true, c=true }|lang=lua}}. | ||
== deepCopy == | == deepCopy == |