filmov
tv
Pattern Matching in Elixir
Показать описание
In this step-by-step Elixir tutorial for beginners, we learn how to use pattern matching. We discuss three ways to use pattern matching:
• How to bind a variable.
• How to compare values with the pin operator.
• How to select code we want to execute.
The match operator is not only used to match against simple values, but it is also helpful in destructuring more complex data types. Pattern matching is a powerful part of Elixir. Subscribe now, and we'll walk through a hands-on introduction to Elixir. If you want to learn how to code in Elixir, this Elixir tutorial is the perfect introduction! I will teach you the basics of list operations and programming concepts, so you can start building powerful applications in this beautiful language. Start learning with this Elixir programming tutorial today and see how easy it is to get started and learn Elixir!
CHALLENGE
---------------------------------------------------
1) Write documentation for all the functions written.
2) Write tests for the EquipmentDetail and SaucerPreflight modules.
3) Write `is_under_max_load?/1` function using pipe operators and recursion. *Hint: use `elem/1` function to access tuple values.
If you get stuck or need to check the solution, checkout the Github repo below .
SUPPORT BACKEND STUFF
---------------------------------------------------
FOLLOW ME
---------------------------------------------------
• How to bind a variable.
• How to compare values with the pin operator.
• How to select code we want to execute.
The match operator is not only used to match against simple values, but it is also helpful in destructuring more complex data types. Pattern matching is a powerful part of Elixir. Subscribe now, and we'll walk through a hands-on introduction to Elixir. If you want to learn how to code in Elixir, this Elixir tutorial is the perfect introduction! I will teach you the basics of list operations and programming concepts, so you can start building powerful applications in this beautiful language. Start learning with this Elixir programming tutorial today and see how easy it is to get started and learn Elixir!
CHALLENGE
---------------------------------------------------
1) Write documentation for all the functions written.
2) Write tests for the EquipmentDetail and SaucerPreflight modules.
3) Write `is_under_max_load?/1` function using pipe operators and recursion. *Hint: use `elem/1` function to access tuple values.
If you get stuck or need to check the solution, checkout the Github repo below .
SUPPORT BACKEND STUFF
---------------------------------------------------
FOLLOW ME
---------------------------------------------------
Комментарии