Handbook
Glossary
<hash-array> ( n -- array )
Factor handbook
»
The language
»
Collections
»
Hashtables
»
Hashtable implementation details
Next:
set-nth-pair ( value key array n -- )
Vocabulary
hashtables
.
private
Inputs
n
an
object
Outputs
array
an
object
Definition
USING:
arrays
math
;
IN:
hashtables.private
:
<hash-array>
( n -- array )
3
*
1
+
2/
next-power-of-2
2
*
+empty+
<array>
;
inline