<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
For F, did you mean:<br>
<font face="monospace, monospace">((is_integer(X) or is_float(X))
and X) < 5</font><br>
<br>
<div class="moz-cite-prefix">On 04/05/2016 02:27 PM, Roberto
Ostinelli wrote:<br>
</div>
<blockquote
cite="mid:CAM5fRypk2Q5UCVAQmLeB28Y_HKELc_YYo8MVevy4vkjz1Xnq8A@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div dir="ltr">All,
<div>I'm a little stumped and I feel I'm missing something
sooooooo beginner here.</div>
<div><br>
</div>
<div>
<div><font face="monospace, monospace">1> F = fun(X) when
(is_integer(X) or is_float(X)) and X < 5 -> ok end.</font></div>
<div><font face="monospace, monospace">#Fun<erl_eval.6.50752066></font></div>
<div><font face="monospace, monospace">2> F(1).</font></div>
<div><font face="monospace, monospace">** exception error: no
function clause matching
erl_eval:'-inside-an-interpreted-fun-'(1) </font></div>
<div><font face="monospace, monospace">3> F2 = fun(X) when
(is_integer(X) or is_float(X)) and (X < 5) -> ok
end.</font></div>
<div><font face="monospace, monospace">#Fun<erl_eval.6.50752066></font></div>
<div><font face="monospace, monospace">4> F2(1).</font></div>
</div>
<div><font face="monospace, monospace">ok</font></div>
<div><br>
</div>
<div>...Can some kind soul clarify?</div>
<div><br>
</div>
<div>Thank you,</div>
<div>r.</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
erlang-questions mailing list
<a class="moz-txt-link-abbreviated" href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>
<a class="moz-txt-link-freetext" href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a>
</pre>
</blockquote>
<br>
</body>
</html>