next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc > 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 that have already been installed for them will return values in the original object, rather than in the copy.

See also