Handbook
Glossary
rehash ( hash -- )
Factor handbook
»
The language
»
Collections
»
Hashtables
»
Hashtable implementation details
Prev:
set-nth-pair ( value key array n -- )
Vocabulary
hashtables
Inputs
hash
a
hashtable
Outputs
None
Word description
Rebuild the hashtable. This word should be called if the hashcodes of the hashtable's keys have changed, or if the hashing algorithms themselves have changed, neither of which should occur during normal operation.
Definition
USING:
assocs
hashtables.private
kernel
;
IN:
hashtables
:
rehash
( hash -- )
[
>alist
]
[
clear-assoc
]
[
(rehash)
]
tri
;