Handbook
Glossary
<hash-set> ( capacity -- hash-set )
Factor handbook
»
The language
»
Collections
»
Sets
»
Set implementations
»
Hash sets
Prev:
hash-set
Next:
>hash-set ( members -- hash-set )
Vocabulary
hash-sets
Inputs
capacity
a
number
Outputs
hash-set
a
hash-set
Word description
Creates a new hash set capable of storing
capacity
elements before growing.
Definition
USING:
hash-sets.private
kernel
math
;
IN:
hash-sets
:
<hash-set>
( capacity -- hash-set )
integer>fixnum-strict
[
0 0
]
dip
<hash-array>
hash-set
boa
;
inline