We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The nice thing about this one compared to other haskell solutions is that if you want every nth instead of every second, you can easily just switch out the odd predicate.
Filter Positions in a List
You are viewing a single comment's thread. Return to all comments →
The nice thing about this one compared to other haskell solutions is that if you want every nth instead of every second, you can easily just switch out the
odd
predicate.