Jump to content

Mòideal:table/doc

O Wiktionary

This is the documentation page for Mòideal:table

This module provides functions for dealing with Lua tables. All of them, except for two helper functions, take a table as their first argument.

Some functions are available as methods in the arrays created by Mòideal:Array.

Functions by what they do:

  • Create a new table:
    • Script error: The function "gsub" does not exist.
  • Create an array:
    • Script error: The function "gsub" does not exist.
  • Return information about the table:
    • Script error: The function "gsub" does not exist.
  • Treat the table as an array (that is, operate on the values in the array portion of the table: values indexed by consecutive integers starting at lua):
    • Script error: The function "gsub" does not exist.
  • Treat a table as a sparse array (that is, operate on values indexed by non-consecutive integers):
    • Script error: The function "gsub" does not exist.
  • Generate an iterator:
    • Script error: The function "gsub" does not exist.
  • Other:
    • Script error: The function "gsub" does not exist.

The original version was a copy of Module:TableTools on Wikipedia via Module:TableTools on Commons, but new functions have been added since then.