Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Help] [Haskell] How to iterate through the bits of a bytestring?

Hi,
I'm trying to implement a function that calculates the hamming distance between two bytestrings. For that i need to iterate through the bits of each of them. How can i do that? I can only unpack the bytestring into word8s. Is there a function that unpacks the word8s into the corresponding binary representation?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by thegeistJun 19, 2020 05:33 AM 3 149 Jun 19, 2020 05:33 AM
Last Post: thegeist
by g4143Apr 3, 2017 11:40 AM 2 171 Apr 3, 2017 11:40 AM
Last Post: cortland12
by cortland12Apr 25, 2016 11:36 AM 2 97 Apr 25, 2016 11:36 AM
Last Post: cortland12