Hi,
We can define filter using foldr as under:

filter1 p = foldr (\x xs -> (if (p x) then (x:xs) else xs))  []

Can we define filter using foldr but in pointfree style?

Thanks
-DM
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to