| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
HaskellWorks.Data.RankSelect.Base.Rank0
Documentation
Methods
Find the number of occurences of the bit 0 in the prefix of the supplied bitstring of the given length
>>>import HaskellWorks.Data.Bits.BitRead>>>:set -XTypeApplications
>>>rank0 (unsafeBitRead @Word8 "11111111") 40>>>rank0 (unsafeBitRead @Word8 "00111111") 42>>>rank0 (unsafeBitRead @Word8 "10011111") 42>>>rank0 (unsafeBitRead @Word8 "10011001") 42>>>rank0 (unsafeBitRead @Word8 "10011001") 63
Instances
| Rank0 Word8 Source # | |
| Rank0 Word16 Source # | |
| Rank0 Word32 Source # | |
| Rank0 Word64 Source # | |
| Rank0 [Bool] Source # | |
| Rank0 [Word8] Source # | |
| Rank0 [Word16] Source # | |
| Rank0 [Word32] Source # | |
| Rank0 [Word64] Source # | |
| Rank0 (Vector Bit) Source # | |
| Rank0 (Vector Bit) Source # | |
| Rank0 a => Rank0 (BitShown a) Source # | |
| Rank0 (Vector Word8) Source # | |
| Rank0 (Vector Word16) Source # | |
| Rank0 (Vector Word32) Source # | |
| Rank0 (Vector Word64) Source # | |
| Rank0 (Vector Word8) Source # | |
| Rank0 (Vector Word16) Source # | |
| Rank0 (Vector Word32) Source # | |
| Rank0 (Vector Word64) Source # | |