diff options
| author | Eli Zaretskii | 2006-07-08 18:08:40 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-07-08 18:08:40 +0000 |
| commit | d550765cb614b4c91c3048b85bd6217d7f26d300 (patch) | |
| tree | 57a66759f688d3fc2f53a64aed3dbddb488e4483 | |
| parent | cdbd783c68ffbaf6c1c6df0e022a1e8058062d69 (diff) | |
| download | emacs-d550765cb614b4c91c3048b85bd6217d7f26d300.tar.gz emacs-d550765cb614b4c91c3048b85bd6217d7f26d300.zip | |
(Creating Hash, Hash Access, Defining Hash, Other Hash): Remove @tindex.
| -rw-r--r-- | lispref/hash.texi | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lispref/hash.texi b/lispref/hash.texi index 66420476d42..1913905af8d 100644 --- a/lispref/hash.texi +++ b/lispref/hash.texi | |||
| @@ -59,7 +59,6 @@ of object and are used only for recording interned symbols | |||
| 59 | The principal function for creating a hash table is | 59 | The principal function for creating a hash table is |
| 60 | @code{make-hash-table}. | 60 | @code{make-hash-table}. |
| 61 | 61 | ||
| 62 | @tindex make-hash-table | ||
| 63 | @defun make-hash-table &rest keyword-args | 62 | @defun make-hash-table &rest keyword-args |
| 64 | This function creates a new hash table according to the specified | 63 | This function creates a new hash table according to the specified |
| 65 | arguments. The arguments should consist of alternating keywords | 64 | arguments. The arguments should consist of alternating keywords |
| @@ -155,7 +154,6 @@ of the nominal size. The default for @var{threshold} is 0.8. | |||
| 155 | @end table | 154 | @end table |
| 156 | @end defun | 155 | @end defun |
| 157 | 156 | ||
| 158 | @tindex makehash | ||
| 159 | @defun makehash &optional test | 157 | @defun makehash &optional test |
| 160 | This is equivalent to @code{make-hash-table}, but with a different style | 158 | This is equivalent to @code{make-hash-table}, but with a different style |
| 161 | argument list. The argument @var{test} specifies the method | 159 | argument list. The argument @var{test} specifies the method |
| @@ -172,21 +170,18 @@ associations in a hash table. In general, any Lisp object can be used | |||
| 172 | as a hash key, unless the comparison method imposes limits. Any Lisp | 170 | as a hash key, unless the comparison method imposes limits. Any Lisp |
| 173 | object can also be used as the value. | 171 | object can also be used as the value. |
| 174 | 172 | ||
| 175 | @tindex gethash | ||
| 176 | @defun gethash key table &optional default | 173 | @defun gethash key table &optional default |
| 177 | This function looks up @var{key} in @var{table}, and returns its | 174 | This function looks up @var{key} in @var{table}, and returns its |
| 178 | associated @var{value}---or @var{default}, if @var{key} has no | 175 | associated @var{value}---or @var{default}, if @var{key} has no |
| 179 | association in @var{table}. | 176 | association in @var{table}. |
| 180 | @end defun | 177 | @end defun |
| 181 | 178 | ||
| 182 | @tindex puthash | ||
| 183 | @defun puthash key value table | 179 | @defun puthash key value table |
| 184 | This function enters an association for @var{key} in @var{table}, with | 180 | This function enters an association for @var{key} in @var{table}, with |
| 185 | value @var{value}. If @var{key} already has an association in | 181 | value @var{value}. If @var{key} already has an association in |
| 186 | @var{table}, @var{value} replaces the old associated value. | 182 | @var{table}, @var{value} replaces the old associated value. |
| 187 | @end defun | 183 | @end defun |
| 188 | 184 | ||
| 189 | @tindex remhash | ||
| 190 | @defun remhash key table | 185 | @defun remhash key table |
| 191 | This function removes the association for @var{key} from @var{table}, if | 186 | This function removes the association for @var{key} from @var{table}, if |
| 192 | there is one. If @var{key} has no association, @code{remhash} does | 187 | there is one. If @var{key} has no association, @code{remhash} does |
| @@ -197,7 +192,6 @@ non-@code{nil} if it actually removed an association and @code{nil} | |||
| 197 | otherwise. In Emacs Lisp, @code{remhash} always returns @code{nil}. | 192 | otherwise. In Emacs Lisp, @code{remhash} always returns @code{nil}. |
| 198 | @end defun | 193 | @end defun |
| 199 | 194 | ||
| 200 | @tindex clrhash | ||
| 201 | @defun clrhash table | 195 | @defun clrhash table |
| 202 | This function removes all the associations from hash table @var{table}, | 196 | This function removes all the associations from hash table @var{table}, |
| 203 | so that it becomes empty. This is also called @dfn{clearing} the hash | 197 | so that it becomes empty. This is also called @dfn{clearing} the hash |
| @@ -207,7 +201,6 @@ table. | |||
| 207 | @var{table}. In Emacs Lisp, it returns @code{nil}. | 201 | @var{table}. In Emacs Lisp, it returns @code{nil}. |
| 208 | @end defun | 202 | @end defun |
| 209 | 203 | ||
| 210 | @tindex maphash | ||
| 211 | @defun maphash function table | 204 | @defun maphash function table |
| 212 | @anchor{Definition of maphash} | 205 | @anchor{Definition of maphash} |
| 213 | This function calls @var{function} once for each of the associations in | 206 | This function calls @var{function} once for each of the associations in |
| @@ -235,7 +228,6 @@ other nearby slots, to see if it has found the key being sought. | |||
| 235 | function to compute the hash code from a key, and a function to compare | 228 | function to compute the hash code from a key, and a function to compare |
| 236 | two keys directly. | 229 | two keys directly. |
| 237 | 230 | ||
| 238 | @tindex define-hash-table-test | ||
| 239 | @defun define-hash-table-test name test-fn hash-fn | 231 | @defun define-hash-table-test name test-fn hash-fn |
| 240 | This function defines a new hash table test, named @var{name}. | 232 | This function defines a new hash table test, named @var{name}. |
| 241 | 233 | ||
| @@ -257,7 +249,6 @@ under the property @code{hash-table-test}; the property value's form is | |||
| 257 | @code{(@var{test-fn} @var{hash-fn})}. | 249 | @code{(@var{test-fn} @var{hash-fn})}. |
| 258 | @end defun | 250 | @end defun |
| 259 | 251 | ||
| 260 | @tindex sxhash | ||
| 261 | @defun sxhash obj | 252 | @defun sxhash obj |
| 262 | This function returns a hash code for Lisp object @var{obj}. | 253 | This function returns a hash code for Lisp object @var{obj}. |
| 263 | This is an integer which reflects the contents of @var{obj} | 254 | This is an integer which reflects the contents of @var{obj} |
| @@ -303,46 +294,38 @@ and equal-looking objects are considered the same key. | |||
| 303 | 294 | ||
| 304 | Here are some other functions for working with hash tables. | 295 | Here are some other functions for working with hash tables. |
| 305 | 296 | ||
| 306 | @tindex hash-table-p | ||
| 307 | @defun hash-table-p table | 297 | @defun hash-table-p table |
| 308 | This returns non-@code{nil} if @var{table} is a hash table object. | 298 | This returns non-@code{nil} if @var{table} is a hash table object. |
| 309 | @end defun | 299 | @end defun |
| 310 | 300 | ||
| 311 | @tindex copy-hash-table | ||
| 312 | @defun copy-hash-table table | 301 | @defun copy-hash-table table |
| 313 | This function creates and returns a copy of @var{table}. Only the table | 302 | This function creates and returns a copy of @var{table}. Only the table |
| 314 | itself is copied---the keys and values are shared. | 303 | itself is copied---the keys and values are shared. |
| 315 | @end defun | 304 | @end defun |
| 316 | 305 | ||
| 317 | @tindex hash-table-count | ||
| 318 | @defun hash-table-count table | 306 | @defun hash-table-count table |
| 319 | This function returns the actual number of entries in @var{table}. | 307 | This function returns the actual number of entries in @var{table}. |
| 320 | @end defun | 308 | @end defun |
| 321 | 309 | ||
| 322 | @tindex hash-table-test | ||
| 323 | @defun hash-table-test table | 310 | @defun hash-table-test table |
| 324 | This returns the @var{test} value that was given when @var{table} was | 311 | This returns the @var{test} value that was given when @var{table} was |
| 325 | created, to specify how to hash and compare keys. See | 312 | created, to specify how to hash and compare keys. See |
| 326 | @code{make-hash-table} (@pxref{Creating Hash}). | 313 | @code{make-hash-table} (@pxref{Creating Hash}). |
| 327 | @end defun | 314 | @end defun |
| 328 | 315 | ||
| 329 | @tindex hash-table-weakness | ||
| 330 | @defun hash-table-weakness table | 316 | @defun hash-table-weakness table |
| 331 | This function returns the @var{weak} value that was specified for hash | 317 | This function returns the @var{weak} value that was specified for hash |
| 332 | table @var{table}. | 318 | table @var{table}. |
| 333 | @end defun | 319 | @end defun |
| 334 | 320 | ||
| 335 | @tindex hash-table-rehash-size | ||
| 336 | @defun hash-table-rehash-size table | 321 | @defun hash-table-rehash-size table |
| 337 | This returns the rehash size of @var{table}. | 322 | This returns the rehash size of @var{table}. |
| 338 | @end defun | 323 | @end defun |
| 339 | 324 | ||
| 340 | @tindex hash-table-rehash-threshold | ||
| 341 | @defun hash-table-rehash-threshold table | 325 | @defun hash-table-rehash-threshold table |
| 342 | This returns the rehash threshold of @var{table}. | 326 | This returns the rehash threshold of @var{table}. |
| 343 | @end defun | 327 | @end defun |
| 344 | 328 | ||
| 345 | @tindex hash-table-size | ||
| 346 | @defun hash-table-size table | 329 | @defun hash-table-size table |
| 347 | This returns the current nominal size of @var{table}. | 330 | This returns the current nominal size of @var{table}. |
| 348 | @end defun | 331 | @end defun |