Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.


    Pass arguments into Elixir functions and understand arity


    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: