All Manuals > LispWorks® User Guide and Reference Manual > 37 The HCL Package

copy-to-weak-simple-vector Function

Summary

Creates a weak vector with the same contents as the supplied vector.

Package

hcl

Signature

copy-to-weak-simple-vector vector-t => weak-vector

Arguments
vector-t
An array of type (vector t).
Values
weak-vector
A weak array of type (vector t).
Description

The function copy-to-weak-simple-vector creates and returns a weak vector with the same contents as the argument vector-t.

Apart from the checking of arguments, this is equivalent to:

(replace (make-array (length vector-t) 
                     :weak t)
         vector-t)

See set-array-weak for a description of weak vectors.

See also

make-array
set-array-weak
11.6.8 Freeing of objects by the GC


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:35