Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def delete_all(collection, value) when is_list(collection) do
- List.foldr(collection, [], fn
- {^value, acc} -> acc
- {x, acc} -> [x|acc]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement