List.keyfind/4
defmodule List do
def keyfind(list, key, position, default \\ nil)
end
Receives a list of tuples and returns the first tuple where the element at position
in the tuple matches the given key.
If no matching tuple is found, default
is returned.