[Haskell-cafe] How to remove all numbers from a list that are
divisible by an integer
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 ...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...
More information about the Haskell-Cafe