Handbook
Glossary
<hashtable> ( n -- hash )
Factor handbook
»
The language
»
Collections
»
Hashtables
Prev:
hashtable? ( object -- ? )
Next:
>hashtable ( assoc -- hashtable )
Vocabulary
hashtables
Inputs
n
a positive integer specifying hashtable capacity
Outputs
hash
a new hashtable
Word description
Create a new hashtable capable of storing
n
key/value pairs before growing.
Definition
USING:
hashtables.private
kernel
math
;
IN:
hashtables
:
<hashtable>
( n -- hash )
integer>fixnum-strict
[
0 0
]
dip
<hash-array>
hashtable
boa
;
inline