<div>Hi all, </div>
<div>I'm trying to create a function which filters out all number from a list that are divisible by an integer.</div>
<div>Ex. the list [2,3,4,5,6] div 2...should give me the list like: [3,5], other numbers should be removed divisible by 2.</div>
<div> </div>
<div>filter :: (a -> Bool) -> [a] -> [a] <br>filter p [] = []<br>filter p (x:xs) = if p 'mod' x <br> then x : filter p xs <br> else filter p xs<br>I tried this, but it doesn't work!!!!
</div>
<div> </div>
<div>Thank You,</div>
<div>Miranda<br><br> </div>