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
Post a Comment