Module copyTable

Function for creating a deep-copy of a table.

Functions

copyTable (obj[, seen={}]) Creates a deep-copy of the given table.


Functions

copyTable (obj[, seen={}])
Creates a deep-copy of the given table.

Parameters:

  • obj table for which to construct the deep-copy
  • seen (optional) set of already seen objects in the tree; used for recursion (default {})

Returns:

    a deep-copy of obj
generated by LDoc 1.4.3 Last updated 2017-06-01 23:07:48