Created
May 25, 2013 18:19
-
-
Save seancribbs/5650150 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
-define(case_inf(E, E0, FC, E1, AC, E2, A, F, E3), | |
begin | |
AInf = (E), | |
if | |
not AInf -> | |
E0; | |
is_function(AInf) -> | |
FC = AInf, | |
E1; | |
is_tuple(AInf) andalso size(AInf) == 2 andalso is_function(element(2,AInf)) -> | |
A = element(1,AInf), | |
F = element(2,AInf), | |
E3; | |
true -> | |
AC = AInf, | |
E2 | |
end | |
end). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment