You are viewing a single comment's thread. Return to all comments →
f n arr = filter (< n) arr
f n arr = [ a | a <- arr , a < n ]
f = filter . (>)
anytime you have same dangling arguments at the end on both sides, you can get rid of it and be point free, like this
f n = filter (< n)
matter of taste, whether you prefer "f(x) = sin(x)" or "f = sin"... But anyway, the exercise is to write your own filter function and not use the built-in one.