76 |
|
|
77 |
@table @code |
@table @code |
78 |
@item eql |
@item eql |
79 |
Keys which are numbers are ``the same'' if they are equal in value; |
Keys which are numbers are ``the same'' if they are @code{equal}, that |
80 |
otherwise, two distinct objects are never ``the same''. |
is, if they are equal in value and either both are integers or both |
81 |
|
are floats; otherwise, two distinct objects are never ``the same''. |
82 |
|
|
83 |
@item eq |
@item eq |
84 |
Any two distinct Lisp objects are ``different'' as keys. |
Any two distinct Lisp objects are ``different'' as keys. |
159 |
argument list. The argument @var{test} specifies the method |
argument list. The argument @var{test} specifies the method |
160 |
of key lookup. |
of key lookup. |
161 |
|
|
162 |
If you want to specify other parameters, you should use |
This function is obsolete. Use @code{make-hash-table} instead. |
|
@code{make-hash-table}. |
|
163 |
@end defun |
@end defun |
164 |
|
|
165 |
@node Hash Access |
@node Hash Access |
187 |
This function removes the association for @var{key} from @var{table}, if |
This function removes the association for @var{key} from @var{table}, if |
188 |
there is one. If @var{key} has no association, @code{remhash} does |
there is one. If @var{key} has no association, @code{remhash} does |
189 |
nothing. |
nothing. |
190 |
|
|
191 |
|
@b{Common Lisp note:} In Common Lisp, @code{remhash} returns |
192 |
|
non-@code{nil} if it actually removed an association and @code{nil} |
193 |
|
otherwise. In Emacs Lisp, @code{remhash} always returns @code{nil}. |
194 |
@end defun |
@end defun |
195 |
|
|
196 |
@tindex clrhash |
@tindex clrhash |
198 |
This function removes all the associations from hash table @var{table}, |
This function removes all the associations from hash table @var{table}, |
199 |
so that it becomes empty. This is also called @dfn{clearing} the hash |
so that it becomes empty. This is also called @dfn{clearing} the hash |
200 |
table. |
table. |
201 |
|
|
202 |
|
@b{Common Lisp note:} In Common Lisp, @code{clrhash} returns the empty |
203 |
|
@var{table}. In Emacs Lisp, it returns @code{nil}. |
204 |
@end defun |
@end defun |
205 |
|
|
206 |
@tindex maphash |
@tindex maphash |
262 |
@var{obj1})} and @code{(sxhash @var{obj2})} are the same integer. |
@var{obj1})} and @code{(sxhash @var{obj2})} are the same integer. |
263 |
|
|
264 |
If the two objects are not equal, the values returned by @code{sxhash} |
If the two objects are not equal, the values returned by @code{sxhash} |
265 |
are usually different, but not always; but once in a rare while, by |
are usually different, but not always; once in a rare while, by luck, |
266 |
luck, you will encounter two distinct-looking objects that give the same |
you will encounter two distinct-looking objects that give the same |
267 |
result from @code{sxhash}. |
result from @code{sxhash}. |
268 |
@end defun |
@end defun |
269 |
|
|