<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Feb 10, 2015 at 12:01 AM, Roelof Wobben <span dir="ltr"><<a href="mailto:r.wobben@home.nl" target="_blank">r.wobben@home.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">Am I not alllowed to do this <br>
<br>
sum(x) -> <br>
x ; <br>
<br>
sum(x,y) -><br>
x + y. <br>
<br>
or is there something else missing ?</div></blockquote><div><br></div><div>That's correct. Those are two different functions, so a period rather than semicolon should be used. In Erlang, functions in a module are identified by their name and their arity (the number of arguments they take). The first function would be sum/1 and the second is sum/2.</div><div><br></div><div>-bob</div></div></div></div>