j
k
j a
j l
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
Back to the thread
Back to the list