Haskell : convert a bytestring to [word8] -


my intent convert bytestring list of word8 in haskell in order access lsb each byte.

any idea how achieve ?

unpack :: bytestring -> [word8]  

http://hackage.haskell.org/package/bytestring-0.10.8.1/docs/data-bytestring.html#v:unpack

also consider whether can skip intermediate list, , directly use foldl' or related fold.


Comments

Popular posts from this blog

cron - how to properly run Python script with crontab on every system startup -

elasticsearch - Is the order of operations guaranteed in a bulk update? -

Slow performance first queries on SQL Azure -