Elixir crash course #14: Pattern matching

preview_player
Показать описание
Join this channel to get access to perks:

Check my website:

Documentation:

Course content:
0:00 - Intro
0:35 - The match operator =
2:06 - Tuples
4:03 - Match error
5:02 - Matching constants
10:20 - Lists
12:02 - Head and tail of lists
13:03 - Maps
17:21 - Multi-clause functions
18:38 - Example: Pattern matching the user name
21:31 - Changing the order of the functions
Рекомендации по теме
Комментарии
Автор

Thanks for yet another brilliant video!

It's also a good point to know that you can pattern match on maps with a pattern without any key-value pairs at all, for example: `%{} = %{name: "Daniel", age: 26}`. And you can also use a pattern with only the desired key-value pairs: `%{name: name} = %{name: "Daniel", age: 26}`.

evgeniy.fateev
Автор

Pattern matching in c# is also too good.

prashlovessamosa
Автор

Daniel are you going to teach us phoenix after this series got completed ?

prashlovessamosa