License | BSD3 |
---|---|
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell98 |
Documentation
Unaligned codes
Unary-coded integers
>>>
runPutL . runEncode $ encode (Unary 1) >> flush
"\128">>>
runPutL . runEncode $ encode (Unary 7) >> flush
"\254"
type Gamma c = Elias (Unary c) Source
Elias Gamma codes the position of the most significant in
Unary
.