Doubt about funs

James Hague jamesh@REDACTED
Tue Feb 20 18:04:49 CET 2001


>   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



More information about the erlang-questions mailing list