Handbook
Glossary
binary-bits
Factor handbook
»
The language
»
Numbers
»
Arithmetic
»
Bitwise arithmetic
»
Integer virtual sequences
Prev:
bits>number ( seq -- number )
Next:
<binary-bits> ( number length -- binary-bits )
Vocabulary
math
.
bits
Class description
Tuple representing a number as a virtual sequence of binary digits. The first bit is the least significant bit. Constructors are
<binary-bits>
or
make-binary-bits
.
Definition
IN:
math.bits
TUPLE:
binary-bits
<
bits
;
Methods
USING:
generic
kernel
math.bits
sequences.private
;
M:
binary-bits
nth-unsafe
M\
binary-bits
nth-unsafe
(call-next-method)
1 0
?
;
inline