[erlang-questions] Why I cannot use functions in gaurds

Maruthavanan Subbarayan <>
Tue Nov 6 07:57:33 CET 2012


HI,
I would like to know  if the first one is valid why not the second one?
case L of
   {answer, N} when N == 42 -> true;
   _ -> false
 end.
case L of
   {answer, N} when N == M:F(A) -> true;
   _ -> false
 end. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20121106/cfb31836/attachment.html>


More information about the erlang-questions mailing list