[Haskell-beginners] Convert bits to bytes
Alec Benzer
alecbenzer at gmail.com
Thu Sep 2 00:45:08 EDT 2010
What's the quickest/the best/a way of converting a series of bits into
bytes? Ie, converting a [Bool] to a [Word8]. So if I had replicate 8 True ++
replicate 8 False :: [Bool], it would spit out [255,0] :: [Word8].
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20100901/04ea7c3a/attachment.html
More information about the Beginners
mailing list