Pass arguments into Elixir functions and understand arity
DRANK

The syntax to pass arguments into functions is akin to many other languages. Elixir functions are uniquely recognized when running based off of the number of arguments passed in (a term called arity). This means you can define functions with the same name, so long as a different number of arguments is passed in. Arity is a key concept to be aware of when reading documentation and writing your own code. Additional resources: Information about arity Default arguments in functions

egghead.io
Related Topics: Elixir