bits - Factor Documentation (original) (raw)
bits
Factor handbook » The language » Numbers » Arithmetic » Bitwise arithmetic » Integer virtual sequences
Next: | ( number length -- bits ) |
---|
Class description
Tuple representing a number as a virtual sequence of booleans. The first bit is the least significant bit. Constructors are or make-bits.
Definition
TUPLE: bits { number read-only } { length read-only } ;
Methods
USING: accessors math.bits sequences ;
M: bits length length>> ; inline