Previous: , Up: deques   [Index]


38.10 Miscellaneous operations on deques

The following syntactic bindings are exported by the library (vicare containers deques). The syntactic bindings whose name is prefixed with $ are unsafe operations: they do not validate their arguments before accessing them.

Function: deque-copy! dst-deque src-deque
Function: $deque-copy! dst-deque src-deque

Iterate over all the objects in src-deque, starting from the front side, and push them in the rear side of dst-deque. This is a shallow copy: the very objects from the source deque are added to the destination deque; if we need to duplicate the objects, we can use the map operation.

The dst-deque argument allows us to build the destination deque with the desired configuration parameters.

Function: deque-reverse! dst-deque src-deque
Function: $deque-reverse! dst-deque src-deque

Iterate over the objects in src-queue, starting from the front side, and push them in the front side of dst-queue. Return dst-queue.

The dst-deque argument allows us to build the destination deque with the desired configuration parameters.