primitive-extras-0.10.1.10: Extras for the "primitive" library
Safe HaskellSafe-Inferred
LanguageHaskell2010

PrimitiveExtras.Bitmap

Synopsis

Documentation

newtype Bitmap #

A word-size set of ints.

Constructors

Bitmap Int64 

Instances

Instances details
Eq Bitmap 
Instance details

Defined in PrimitiveExtras.Bitmap

Methods

(==) :: Bitmap -> Bitmap -> Bool

(/=) :: Bitmap -> Bitmap -> Bool

singleton :: Int -> Bitmap #

insert :: Int -> Bitmap -> Bitmap #

invert :: Int -> Bitmap -> Bitmap #

indexList :: [Int] -> Bitmap #

boolList :: [Bool] -> Bitmap #

pair :: Int -> Int -> Bitmap #

populatedIndex :: Int -> Bitmap -> Int #

A number of non-zero bits, preceding this one.

isPopulated :: Int -> Bitmap -> Bool #

population :: Bitmap -> Int #

null :: Bitmap -> Bool #

bits :: Bitmap -> [Int] #

int64 :: Bitmap -> Int64 #

allBitsList :: [Int] #

Orphan instances

Eq Bitmap # 
Instance details

Methods

(==) :: Bitmap -> Bitmap -> Bool

(/=) :: Bitmap -> Bitmap -> Bool