Handbook
Glossary
clear-bits ( bit-array -- )
Bit arrays
Prev:
set-bits ( bit-array -- )
Next:
integer>bit-array ( n -- bit-array )
Vocabulary
bit-arrays
Inputs
bit-array
a
bit-array
Outputs
None
Word description
Sets all elements of the bit array to
f
.
Notes
Calling this word is more efficient than the following:
[ drop f ] map! drop
Side effects
Modifies
bit-array
Definition
IN:
bit-arrays
GENERIC:
clear-bits
( bit-array -- )
Methods
USING:
bit-arrays
bit-arrays.private
;
M:
bit-array
clear-bits
0
(set-bits)
;
inline