Erlang Central

Difference between revisions of "Arity"

From ErlangCentral Wiki

 
m
Line 5: Line 5:
 
  function/2
 
  function/2
  
This is important in the [Exports] section of an [Erlang Module]
+
This is important in the [[Exports]] section of an Erlang [[Module]]
  
 
[[Category:Concepts]]
 
[[Category:Concepts]]

Revision as of 11:39, 2 September 2006

The arity of a function or an operator is the number of arguments or operands it takes.

In Erlang a function of arity 2 can be abbreviated as

function/2

This is important in the Exports section of an Erlang Module