| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.18.3.2 Weak vectors
Weak vectors are mainly useful in Guile’s implementation of weak hash tables.
- 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-vectoruses the list of its arguments whilelist->weak-vectoruses its only argument l (a list) to construct a weak vector the same waylist->vectorwould.
- Scheme Procedure: weak-vector? obj
- C Function: scm_weak_vector_p (obj)
Return
#tif obj is a weak vector. Note that all weak hashes are also weak vectors.
This document was generated on April 20, 2013 using texi2html 5.0.
