PrimitiveExtras.Bitmap

primitive-extras-0.10.2.1: Extras for the "primitive" library

Safe Haskell | None
Language | Haskell2010

PrimitiveExtras.Bitmap

Contents

- Orphan instances

Synopsis

- newtype Bitmap = Bitmap Int64
- empty :: Bitmap
- 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
- isPopulated :: Int -> Bitmap -> Bool
- population :: Bitmap -> Int
- null :: Bitmap -> Bool
- bits :: Bitmap -> [Int]
- populatedIndicesList :: Bitmap -> [Int]
- int64 :: Bitmap -> Int64
- allBitsList :: [Int]
- allBitsUnfoldl :: Unfoldl Int
- populatedBitsUnfoldl :: Bitmap -> Unfoldl Int
- indicesAmongstPopulatedBitsUnfoldl :: Bitmap -> Unfoldl Int

# 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 #

empty :: Bitmap #

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] #

populatedIndicesList :: Bitmap -> [Int] #

int64 :: Bitmap -> Int64 #

allBitsList :: [Int] #

allBitsUnfoldl :: Unfoldl Int #

populatedBitsUnfoldl :: Bitmap -> Unfoldl Int #

indicesAmongstPopulatedBitsUnfoldl :: Bitmap -> Unfoldl Int #

# Orphan instances

Eq Bitmap # |
Instance details Methods (==) :: Bitmap -> Bitmap -> Bool # (/=) :: Bitmap -> Bitmap -> Bool #