Next: , Previous: , Up: dynamic arrays   [Index]


40.9 Miscellaneous operations on dynamic-arrays

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

Function: dynamic-array-copy! dst-arry src-arry
Function: $dynamic-array-copy! dst-arry src-arry

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

The dst-arry argument allows us to build the destination dynamic array with the desired configuration parameters.

Function: dynamic-array-reverse! dst-arry src-arry
Function: $dynamic-array-reverse! dst-arry src-arry

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-arry argument allows us to build the destination dynamic array with the desired configuration parameters.