List.keymember?/3
defmodule List do
def keymember?(list, key, position)
end
Receives a list of tuples and returns true
if there is a tuple where the element at position in the tuple matches the given key.
Otherwise it returns false
.
defmodule List do
def keymember?(list, key, position)
end
Receives a list of tuples and returns true
if there is a tuple where the element at position in the tuple matches the given key.
Otherwise it returns false
.