[Haskell-cafe] How to remove all numbers from a list that are divisible by an integer

Miranda Kajtazi mirandakajtazi at gmail.com
Mon Feb 5 12:15:27 EST 2007


Thanx to all for the previous hints how to solve and write the function to
calculate the sum of a list of lists.

Now I need to know how to remove all numbers that are divisable by an
Lets say I have a list [2,4,5,6,8] and when I divide them with number 2, my
list should look like [5]...because all other numbers in this list are
divisible with 2 therefore I remove or filter all of them.
I tried to use some zipWith...filter and other predefined functions..but I
can't really find the right solution :(
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070205/32852dc5/attachment-0001.htm

More information about the Haskell-Cafe mailing list