bitarray-0.0.1.1: Mutable and immutable bit arrays
Safe HaskellNone
LanguageHaskell98

Data.BitArray.ST

Description

Mutable one-dimensional packed bit arrays in the (strict) ST monad.

Synopsis

Documentation

writeBit :: STBitArray s -> Int -> Bool -> ST s () Source #

flipBit :: STBitArray s -> Int -> ST s Bool Source #

flips the bit and returns the old value