Node:Weak vectors, Previous:Weak key hashes, Up:Weak References



29.2.2 Weak vectors

Weak vectors are mainly useful in Guile's implementation of weak hash tables.

make-weak-vector size [fill] Scheme Procedure
scm_make_weak_vector (size, fill) C Function
Return a weak vector with size elements. If the optional argument fill is given, all entries in the vector will be set to fill. The default value for fill is the empty list.

weak-vector . l Scheme Procedure
list->weak-vector l Scheme Procedure
scm_weak_vector (l) C Function
Construct a weak vector from a list: weak-vector uses the list of its arguments while list->weak-vector uses its only argument l (a list) to construct a weak vector the same way list->vector would.

weak-vector? obj Scheme Procedure
scm_weak_vector_p (obj) C Function
Return #t if obj is a weak vector. Note that all weak hashes are also weak vectors.