Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
<bit-vector> ( capacity -- vector )
Bit vectors
Prev:
>bit-vector ( seq -- vector )
Next:
?V{
Vocabulary
bit-vectors
Inputs and outputs
capacity
a positive integer specifying initial capacity
vector
a
bit-vector
Word description
Creates a new bit vector that can hold
n
bits before resizing.
Definition
USING:
bit-arrays
kernel
;
IN:
bit-vectors
:
<bit-vector>
( capacity -- vector )
<bit-array>
0
bit-vector
boa
;
inline