Fix the mfoldl implementation.
bin2Integer using foldl
Renaming
bin2int :: [Bit] -> Int
int2bin :: Int -> [Bit]
examples
make8 :: [Bit] -> [Bit] to ensure a list of bits is with length 8
beware, the bits are read from the left, so adaptation
chop8 :: [Bit] -> [[Bit]]
encode :: [Int] -> [Bit]
encode :: String -> [Bit]
int2bin :: Int -> [Bit] fix, the result was in little endian and all the
other stuffer was in big endian
decode :: [Bit] -> String
Function as value :D
Simulate the transmission of bits using the channel function (as
identity one)
all :: (a -> Bool) -> [a] -> Bool
all :: (a -> Bool) -> [a] -> Bool
any :: (a -> Bool) -> [a] -> Bool
takeWhile :: (a -> Bool) -> [a] -> [a]
dropWhile :: (a -> Bool) -> [a] -> [a]