Next Previous Up Top Contents Index

3.1 The Collections library

3.1.1 Basics

The table-extensions module exports the class <string-table>; the type <hash-state>; the generic function remove-all-keys! and two methods thereon; and the functions collection-hash, sequence-hash, string-hash, values-hash, case-insensitive-string-hash, and case-insensitive-equal.

The <string-table> class is a class of tables that use strings for keys.

The <hash-state> type implements hash states. A hash state is defined by the DRM, page 123, as "an implementation-dependent type that is associated with a hash id and can be used by the implementation to determine whether the hash id has been invalidated." See pages 122-123 of the DRM for more details.

The various hash functions and the case-insensitive-equal equivalence predicate are convenient building blocks for creating new table classes and hash functions.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index