You are viewing a single comment's thread. Return to all comments →
another option
f lst = [j | (i,j) <- zip [1..] lst, i `mod` 2 == 0]
but not sure how efficient it is, I'm a beginner
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 →
another option
but not sure how efficient it is, I'm a beginner