Skip to content

Instantly share code, notes, and snippets.

@garazdawi
Created September 23, 2014 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garazdawi/8dbda09e8c15ce357cb8 to your computer and use it in GitHub Desktop.
Save garazdawi/8dbda09e8c15ce357cb8 to your computer and use it in GitHub Desktop.
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