I am writing a function that maps lists of lists of bools invectively into lists of bools. This is my code:
y=[False| y<-[0..]]
encode :: [[Bool]] -> [Bool]
encode x:xs = (zip1 x y):True:True:(encode xs)
encode []=[]
The zip1 function just takes two lists and writes them alternating into a new list.
I'm getting the error message
Parse error in pattern: encode
Why do I get this error message?