Doubt about funs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Doubt about funs

James Hague-3
>   Well, here is my doubt:
>
>  Taken fom the Erlang Extensions doc:
>
> "We can also refer a function defined in a different module with
> the following syntax:
>
> F = {Module,FunctionName}  "
>
>
> In this case, how does Erlang gets the correct function, if
> in the module are several functions, with the same name
> but with different arity ?

Context, I would think:

F(1,2) % arity 2
F(blah) % arity 1