copy-structure (ANSI and GNU Common Lisp Document)

Previous: defstruct, Up: Structures Dictionary

#### 8.1.2 copy-structure [Function]

`copy-structure` structure ⇒ copy

#### Arguments and Values::

structure—a structure.

copy—a copy of the structure.

#### Description::

Returns a copy_6 of the structure.

Only the structure itself is copied; not the values of the slots.

#### See Also::

the `:copier` option to defstruct

#### Notes::

The copy is the same as the given structure under equalp, but not under equal.