You are on page 1of 1

hapus [] a b c d e= []

hapus (x:xs) a b c d e= if x == a || x == b || x == c || x == d || x== e then hapus xs a b c d e

else [x] ++ (hapus xs a b c d e)

*Main> hapus [1..25]8 10 13 14 22


[1,2,3,4,5,6,7,9,11,12,15,16,17,18,19,20,21,23,24,25]
*Main>

You might also like