struct.duplicate()

Returns a new duplicated version of the given object, removing all references to the old one

struct.duplicate( object [, deepcopy ] )

Returns: any

Argument Description
object
any, required

The object to duplicate

Alias: variable_name, obj

deepcopy
boolean, optional

if set to true (default) also the child elements are cloned, otherwise the child elements are still the same as in the original object

Examples

There are currently no examples for this function

See also