Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def remove_all(x,[head|tail]) do
- case x == head do
- true ->
- remove_x = [head|tail] -- [x]
- remove_all(x,remove_x)
- false ->
- remove_all(x,tail)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement