List.keydelete/3
defmodule List do
def keydelete(list, key, position)
end
Receives a list of tuples and deletes the first tuple where the element at position matches the given key. Returns the new list.
defmodule List do
def keydelete(list, key, position)
end
Receives a list of tuples and deletes the first tuple where the element at position matches the given key. Returns the new list.