Module copier

A table copier.

This module provides one function for obtaining a complete copy of a table.

Functions

copy (tab) Create a complete copy of a table.


Functions

copy (tab)
Create a complete copy of a table. Also copies metatables. The implementation is from https://lua-users.org/wiki/CopyTable.

Parameters:

  • tab table The table to copy

Returns:

    table The new table
generated by LDoc 1.4.6 Last updated 2023-03-04 11:42:14