Log In
Join
 for free
Back To Module Home
Mastering the Art of Programming in Elixir
0% completed
Getting Started
Transforming the Data
Running Elixir
Quiz Yourself: Introduction to Elixir
Pattern Matching
Assignments with the Match Operator
Lists
Quiz Yourself: Pattern Matching
Immutability
Immutable Data
Performance Implications of Immutability
Quiz Yourself: Immutability
Elixir Basics
Data Types
Operators
Elixir Scope
The with Expression
Quiz Yourself: Elixir Basics
Anonymous Functions
Simple Functions
Returning a Function
Passing Functions as Arguments
Exercise: Join Two Strings
Solution Review: Join Two Strings
Modules and Named Functions
Compiling a Module
Function Calls and Pattern Matching
Guard Clauses
Default Parameters
Private Functions
Modules
Quiz Yourself: Modules and Named Functions
Lists and Recursion
Heads and Tails
Creating a Map Function
Reducing a List to a Single Value
More Complex List Patterns
Quiz Yourself: List and Recursion
Maps, Keyword Lists, Sets, and Structs
How to Choose Between Maps, Structs, and Keyword Lists
Keyword Lists and Maps
Pattern Matching and Updating Maps
Structs
Nested Dictionary Structures
Sets
Quiz Yourself: Maps, Keyword Lists, Sets, and Structs
Processing Collections: Enum and Stream
Enum: Processing Collections
Streams: Lazy Enumerables
Creating Our Own Streams
The Collectable Protocol
Comprehensions
Quiz Yourself: Processing Collections: Enum and Stream
Strings and Binaries
String Literals
Strings and Character Lists
Binaries
Double-quoted Strings Are Binaries
Binaries and Pattern Matching
Quiz Yourself: Strings and Binaries
Control Flow
Use of the if and unless Keywords
Use of the cond Keyword
Use of the case Keyword
Exceptions
Quiz Yourself: Control Flow
Appendix
Raising an Exception
catch, exit, and throw
Defining Our Own Exceptions
Quiz Yourself: Exceptions
When Specifications Are Used?
Specifying a Type
Defining New Types
Specifications for Functions and Callbacks
Using Dialyzer
Quiz Yourself: Specifications and Dialyzer
Conclusion
Final Remarks
Home
/
...
/
Quiz Yourself: Pattern Matching
Quiz Yourself: Pattern Matching
Quiz yourself on pattern matching in Elixir.