Created
March 18, 2014 04:28
-
-
Save scrogson/9613575 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
check_member_option(Host, Element, Option) -> | |
%% Won't this always evaluate to true? | |
true = case try_get_option(Host, Option, all) of | |
all -> true; | |
AllowedValues -> lists:member(Element, AllowedValues) | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To answer my own question. It would result in:
** exception error: no match of right hand side value false