next | previous | forward | backward | up | top | index | toc | home
Macaulay2 > The Macaulay2 language > hash tables > copy

copy -- copy an object

Description

copy x yields a copy of x.

If x is an hash table, array, list or sequence, then the elements are placed into a new copy. If x is a hash table, the copy is mutable if and only if x is.

It is not advisable to copy such things as modules and rings, for the operations which have already been installed for them will return values in the original object, rather than in the copy.

See also