Innym mechanizmem związanym z błędami w Elixirze jest użycie throw i catch.
Another mechanism for working with errors in Elixir is throw and catch.
Nazwy modułów w Elixirze są atomami.
Names of modules in Elixir are also atoms.
W tej lekcji przyjrzymy się strukturom sterującym dostępnym w Elixirze.
at the control structures available to us in Elixir.
Jeżeli chcemy zdefiniować funkcję anonimową w Elixirze musimy użyć słów kluczowych fn i end.
To define an anonymous function in Elixir we need the fn and end keywords.
W Elixirze nie ma klas, ale że jest on łatwy do rozszerzenia, to możemy zdefiniować własny typ.
Elixir does not have classes but because it is easy to extend, we can define our own types.
Jest to kluczowy element każdego projektu tworzonego w Elixirze i w tej lekcji przyjrzymy się najważniejszym jego funkcjom.
It's a crucial part of any Elixir project and in this lesson we're going to explore just a few of its great features.
Nie jest to co prawda ten sam pattern matching co w Elixirze, ale jest to ciekawa funkcjonalność.
It is not the same like in Elixir, but it is a nice feature to have.
W Elixirze mapy to dobrze znane kontenery przechowujące pary klucz-wartość.
In Elixir maps are the "go-to" key-value store.
W Elixirze liczby zmiennoprzecinkowe (ang. float) oznaczamy pojedynczą kropką; mają one 64 bitową precyzję oraz możemy użyć notacji z e do wyrażenia potęg
In Elixir, float numbers require a decimal after at least one digit; they have 64 bit double precision and support e for exponent numbers
W Elixirze lista asocjacyjna jest to specjalna lista krotek, których pierwszym elementem jest atom; zachowują się one jak zwykłe Trzy cechy list asocjacyjnych podkreślają ich znaczenie
In Elixir, a keyword list is a special list of tuples whose first element is an atom; they share performance with lists
Czasami chcemy, by moduły współdzieliły publiczne API, rozwiązaniem tego problemu w Elixirze są zachowania.
Sometimes you want modules to share a public API, the solution for this in Elixir is behaviours.
W Elixirze dostępna jest interaktywna powłoka iex, która pozwala nam na uruchamianie kodu w konsoli.
Elixir comes with iex, an interactive shell, which allows us to evaluate Elixir expressions as we go.
Jeżeli nie chcemy, by inne moduły mogły wywołać naszą funkcję, możemy zdefiniować ją jako prywatną. Będzie można ją użyć tylko w module, w którym została stworzona. W Elixirze służy do tego słowo kluczowe defp
When we don't want other modules accessing a function we can use private functions, which can only be called within their Module. We can define them in Elixir with defp