/ 1, / 2, / 3, etc. called "Arity" , Arity means the number of arguments accepted by this function.
In Erlang, two functions with the same name but with different clarity are two different functions, and as such are exported explicitly.
For example, if you have two functions:
do_something() -> does_something(). do_something(SomeArg) -> some_something_else(SomeArg).
And at the top of your module you only had
-export([do_something/0]).
Then only do_something with zero arguments will be exported (that is, accessible from other modules in the system).
chops
source share