| Copyright | 2016 John Ky |
|---|---|
| License | MIT |
| Safe Haskell | None |
| Language | Haskell2010 |
HaskellWorks.Data.Bits.BitLength
Contents
Description
Succinct operations.
- class BitLength v where
- elemBitLength :: (VectorLike v, BitLength (Elem v)) => v -> Count
- elemBitEnd :: (VectorLike v, BitLength (Elem v)) => v -> Position
Bit map
class BitLength v where Source #
Number of bits in a value including ones and zeros.
Minimal complete definition
Instances
elemBitLength :: (VectorLike v, BitLength (Elem v)) => v -> Count Source #
elemBitEnd :: (VectorLike v, BitLength (Elem v)) => v -> Position Source #