Created
September 23, 2014 13:32
-
-
Save garazdawi/8dbda09e8c15ce357cb8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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