6.17.3.2 Weak vectors ¶
- Scheme Procedure: make-weak-vector size [fill] ¶
- C Function: scm_make_weak_vector (size, fill) ¶
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.
- Scheme Procedure: weak-vector elem … ¶
- Scheme Procedure: list->weak-vector l ¶
- C Function: scm_weak_vector (l) ¶
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.
- Scheme Procedure: weak-vector? obj ¶
- C Function: scm_weak_vector_p (obj) ¶
Return #t
if obj is a weak vector.
- Scheme Procedure: weak-vector-ref wvect k ¶
- C Function: scm_weak_vector_ref (wvect, k) ¶
Return the kth element of the weak vector wvect, or
#f
if that element has been collected.
- Scheme Procedure: weak-vector-set! wvect k elt ¶
- C Function: scm_weak_vector_set_x (wvect, k, elt) ¶
Set the kth element of the weak vector wvect to elt.