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 floating point numbers; otherwise, two distinct objects are never |
82 |
|
``the same''. |
83 |
|
|
84 |
@item eq |
@item eq |
85 |
Any two distinct Lisp objects are ``different'' as keys. |
Any two distinct Lisp objects are ``different'' as keys. |
160 |
argument list. The argument @var{test} specifies the method |
argument list. The argument @var{test} specifies the method |
161 |
of key lookup. |
of key lookup. |
162 |
|
|
163 |
If you want to specify other parameters, you should use |
This function is obsolete. Use @code{make-hash-table} instead. |
|
@code{make-hash-table}. |
|
164 |
@end defun |
@end defun |
165 |
|
|
166 |
@node Hash Access |
@node Hash Access |
188 |
This function removes the association for @var{key} from @var{table}, if |
This function removes the association for @var{key} from @var{table}, if |
189 |
there is one. If @var{key} has no association, @code{remhash} does |
there is one. If @var{key} has no association, @code{remhash} does |
190 |
nothing. |
nothing. |
191 |
|
|
192 |
|
@b{Common Lisp note:} In Common Lisp, @code{remhash} returns |
193 |
|
non-@code{nil} if it actually removed an association and @code{nil} |
194 |
|
otherwise. In Emacs Lisp, @code{remhash} always returns @code{nil}. |
195 |
@end defun |
@end defun |
196 |
|
|
197 |
@tindex clrhash |
@tindex clrhash |
199 |
This function removes all the associations from hash table @var{table}, |
This function removes all the associations from hash table @var{table}, |
200 |
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 |
201 |
table. |
table. |
202 |
|
|
203 |
|
@b{Common Lisp note:} In Common Lisp, @code{clrhash} returns the empty |
204 |
|
@var{table}. In Emacs Lisp, it returns @code{nil}. |
205 |
@end defun |
@end defun |
206 |
|
|
207 |
@tindex maphash |
@tindex maphash |
263 |
@var{obj1})} and @code{(sxhash @var{obj2})} are the same integer. |
@var{obj1})} and @code{(sxhash @var{obj2})} are the same integer. |
264 |
|
|
265 |
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} |
266 |
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, |
267 |
luck, you will encounter two distinct-looking objects that give the same |
you will encounter two distinct-looking objects that give the same |
268 |
result from @code{sxhash}. |
result from @code{sxhash}. |
269 |
@end defun |
@end defun |
270 |
|
|