You are viewing a single comment's thread. Return to all comments →
This also fails for me with list with an odd amount of numbers.
so i used
f [] = [] f [x] = [] f (x:xs) = (head xs) : f (tail xs)
Seems like cookies are disabled on this browser, please enable them to open this website
Filter Positions in a List
You are viewing a single comment's thread. Return to all comments →
This also fails for me with list with an odd amount of numbers.
so i used