1. 3
    Pass arguments into Elixir functions and understand arity
    1m 2s

Pass arguments into Elixir functions and understand arity

InstructorKyle Gill

Share this video with your friends

Send Tweet

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: