FunctionShallowCopy
(
any obj
)
->
any
Description
'ShallowCopy' makes a copy of the object 'obj'. If 'obj' is not a list or a record, 'ShallowCopy' simply returns 'obj', since those objects can never be modified there is no way to distinguish the original object from any copy, so we might as well not copy it. If 'obj' is a list or a record 'ShallowCopy' makes a copy of this object, but does not copy the subobjects.
|