Module stringify

The Stringify module provides utilities for formatting and displaying Lua tables in a more readable manner.

Returns the stringify table.

Functions

isSimpleArray (tbl) Checks if a table is a simple array (i.e., an array with consecutive numeric keys starting from 1).
format (tbl, indent, visited) Formats a table for display, handling circular references and formatting strings and tables recursively.

Tables

stringify The stringify table


Functions

isSimpleArray (tbl)
Checks if a table is a simple array (i.e., an array with consecutive numeric keys starting from 1).

Parameters:

Returns:

    {boolean} Whether the table is a simple array
format (tbl, indent, visited)
Formats a table for display, handling circular references and formatting strings and tables recursively.

Parameters:

  • tbl {table} The table to format
  • indent {number} The indentation level (default is 0)
  • visited {table} A table to track visited tables and detect circular references (optional)

Returns:

    {string} A string representation of the table

Tables

stringify
The stringify table

Fields:

  • _version The version number of the stringify module
  • isSimpleArray The isSimpleArray function
  • format The format function
generated by LDoc 1.5.0 Last updated 2024-10-29 14:41:25