1×
Become a member
to unlock all features

Level Up!

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

Autoplay

    Pattern match values in Elixir

    elixirElixir

    Elixir uses = as an operator, but rather than assigning values to variables with it, it matches values on the right hand side of the = with the left side. This can be used in simple values, more complex data structures, and powerful condition checking.

    Put into simpler terms, pattern matching is Elixir's way of assigning variables.

    Additional resources: