Hi

          check_elem (x:xs) = if x == e then (l2 ++ xs) else [x] ++ check_elem 
xs

Why not:
          check_elem (x:xs) = if x == e then (l2 ++ xs) else x : check_elem xs

Thanks

Neil
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to