# HG changeset patch # User Richard M. Stallman # Date 1108375996 0 # Node ID d1e57e5b8403cb288d74c019b9150f469c7243c9 # Parent 88341b374ad001eee189ebd4333104dfcce73e97 (Hash Tables): Add desc to menu items. (Creating Hash): Expain "full" means "make larger", (Hash Access): Any object can be a key. State value of maphash. diff -r 88341b374ad0 -r d1e57e5b8403 lispref/hash.texi --- a/lispref/hash.texi Mon Feb 14 10:11:48 2005 +0000 +++ b/lispref/hash.texi Mon Feb 14 10:13:16 2005 +0000 @@ -46,10 +46,10 @@ (@pxref{Creating Symbols}). @menu -* Creating Hash:: -* Hash Access:: -* Defining Hash:: -* Other Hash:: +* Creating Hash:: Functions to create hash tables. +* Hash Access:: Reading and writing the hash table contents. +* Defining Hash:: Defining new comparison methods +* Other Hash:: Miscellaneous. @end menu @node Creating Hash @@ -146,11 +146,11 @@ The default value is 1.5. @item :rehash-threshold @var{threshold} -This specifies the criterion for when the hash table is ``full.'' The -value, @var{threshold}, should be a positive floating point number, no -greater than 1. The hash table is ``full'' whenever the actual number of -entries exceeds this fraction of the nominal size. The default for -@var{threshold} is 0.8. +This specifies the criterion for when the hash table is ``full'' (so +it should be made larger). The value, @var{threshold}, should be a +positive floating point number, no greater than 1. The hash table is +``full'' whenever the actual number of entries exceeds this fraction +of the nominal size. The default for @var{threshold} is 0.8. @end table @end defun @@ -167,7 +167,9 @@ @section Hash Table Access This section describes the functions for accessing and storing -associations in a hash table. +associations in a hash table. In general, any Lisp object can be used +as a hash key, unless the comparison method imposes limits. Any Lisp +object can also be used as the value. @tindex gethash @defun gethash key table &optional default @@ -210,7 +212,7 @@ This function calls @var{function} once for each of the associations in @var{table}. The function @var{function} should accept two arguments---a @var{key} listed in @var{table}, and its associated -@var{value}. +@var{value}. @code{maphash} returns @code{nil}. @end defun @node Defining Hash