List.delete/2
defmodule List do
def delete(list, elem)
end
Deletes the given element from the list. Returns a new list without the element. If the element occurs more than once in the list, just the first occurrence is removed.
defmodule List do
def delete(list, elem)
end
Deletes the given element from the list. Returns a new list without the element. If the element occurs more than once in the list, just the first occurrence is removed.