<div dir="ltr"><div>I have a list like this:</div><div><br></div><div>[[1,0,0,0,1,1,1,0,0],[1,1,1,0,1,1,1,0,0],[1,0,1,0,0,1,1,0,0],[0,1,0,0,1,1,1,0,0],[0,0,1,0,1,1,1,0,0],[1,0,0,1,1,1,1,0,1]]</div><div><br></div><div>The 'inner' list is a list of 9 items.  I want to process the list so that a list of lists is returned but the 9th element in each inner list is dropped.</div>
<div><br></div><div>So the function type would be [[a]] -> [[a]]</div><div><br></div><div>So to get started I wrote a function like this:</div><div><br></div><div>discardparitybyte :: [[Bit]] -> [[Bit]]</div><div><br>
</div><div>But then not sure how to transform the inner list.</div><div><br></div><div>I know I can access the first inner element using take 1 list.  But how do I then access/manipulate this inner list?</div><div><br></div>
<div>discardparitybyte (x:xs) = take 9 ??? (take 1 xs) : discardparitybyte ???<br></div></div>