[erlang-questions] Illegal Guard?
Theepan
vasdeveloper@REDACTED
Fri Feb 5 13:40:33 CET 2016
Team - Any idea?
60>
60>
60> is_integer(A = 5).
true
61>
61> fun () when is_integer(A = 5) -> ok end.
* 2: illegal guard expression
62>
62>
62>
62> fun () when is_integer(5) -> ok end.
#Fun<erl_eval.20.54118792>
63>
63>
63> fun (A = 5) when is_integer(A) -> ok end.
#Fun<erl_eval.6.54118792>
64>
64>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160205/e6e92a4c/attachment.htm>
More information about the erlang-questions
mailing list