You are viewing a single comment's thread. Return to all comments →
I had the same answer.
Though it throws an error on stderr because it doesn't explicity match the the case where (x:xs) = []. To fix it, add this to the line before it:
f [] = []
Filter Positions in a List
You are viewing a single comment's thread. Return to all comments →
I had the same answer.
Though it throws an error on stderr because it doesn't explicity match the the case where (x:xs) = []. To fix it, add this to the line before it:
f [] = []