I am having an Erlang
module that exports two methods with the same name but different arity: proc/1
and proc/2
.
When using the methods in the form of MFA
, how do you specify that the /2
should be used or /1
? See for example:
spawn(?MODULE,proc,[22]) % how to tell i want the `/1` arity method
spawn(?MODULE,proc,[11,22]) % `/2`arity method