Skip to content

Instantly share code, notes, and snippets.

@garazdawi garazdawi/lists.erl
Created Sep 23, 2014

Embed
What would you like to do?
keyfind(Key,Value,[H|T]) ->
case maps:find(Key,H) of
{ok, Value} ->
H;
_ ->
keyfind(Key,Value,T)
end;
keyfind(_,_,[]) ->
false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.