Node:Weak key hashes, Next:, Up:Weak References



29.2.1 Weak key hashes

make-weak-key-hash-table size Scheme Procedure
make-weak-value-hash-table size Scheme Procedure
make-doubly-weak-hash-table size Scheme Procedure
scm_make_weak_key_hash_table (size) C Function
scm_make_weak_value_hash_table (size) C Function
scm_make_doubly_weak_hash_table (size) C Function
Return a weak hash table with size buckets. As with any hash table, choosing a good size for the table requires some caution.

You can modify weak hash tables in exactly the same way you would modify regular hash tables. (see Hash Tables)

weak-key-hash-table? obj Scheme Procedure
weak-value-hash-table? obj Scheme Procedure
doubly-weak-hash-table? obj Scheme Procedure
scm_weak_key_hash_table_p (obj) C Function
scm_weak_value_hash_table_p (obj) C Function
scm_doubly_weak_hash_table_p (obj) C Function
Return #t if obj is the specified weak hash table. Note that a doubly weak hash table is neither a weak key nor a weak value hash table.

make-weak-value-hash-table k Scheme Procedure

weak-value-hash-table? x Scheme Procedure

make-doubly-weak-hash-table k Scheme Procedure

doubly-weak-hash-table? x Scheme Procedure