next up previous contents index
Next: dimension Up: Data Structures Previous: new   Contents   Index


Flags


Usage

import from Flags


Description

Flags is a type whose elements are 1-indexed contiguous blocks of boolean flags. The functionality is similar to using arrays of Boolean, but the implementation is more compact, each flag using only one machine bit.


Exports

PrimitiveArrayType Boolean
dimension: (%, Z) $\to$ Z number of flags that are set


where

Z == MachineInteger



Subsections

Manuel Bronstein 2004-06-28