Safe Haskell | None |
---|
- newtype Bit = Bit {}
- _Bit :: Iso' Bit Bool
- data BitVector = BitVector !Int !(Array Bit) !(Vector Int)
- _BitVector :: Iso' BitVector (Array Bit)
- rank :: BitVector -> Int -> Int
- null :: BitVector -> Bool
- size :: BitVector -> Int
- singleton :: Bool -> BitVector
- empty :: BitVector
- data family MVector s a
- data family Vector a
Bits
Bit Vectors with rank
A BitVector support for naïve O(1) rank
.
_BitVector :: Iso' BitVector (Array Bit)Source
O(n) embedding A BitVector
is isomorphic to a vector of bits. It just carries extra information.
Vectors of Bits
data family MVector s a
data family Vector a