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