Pattern Matching in Elixir

preview_player
Показать описание
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
---------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Learning Elixir, thanks for your videos, they r great!

todorelax
Автор

Very good info. Thanks for making these tutorials. I really appreciate it

poseidonphoenix
Автор

Thanks for another great video, been learning a lot from your series. In a future video, I would like to get you're take on Binaries in elixir.

hanzwinter-roach
Автор

thanks for your awesome videos, learning elixir has been fun with you.

a bit curious though 🤔, instead of pattern matching to choose code we want to run, could we use conditional statements? (if/else)

odumahsolomon
Автор

What are the differences betwine Elixir and Erlang and Is they are the same and they can perform the same work? what the advantage and disadvantages with them. Please create a comparison video about Elixir and Erlang

Asia_Bangladesh