Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Advanced Pattern Matching in Elixir

via CodeSignal

Overview

This course explores advanced pattern matching techniques in Elixir, including multiple function clauses, guard clauses, pattern matching in different contexts, and the pin operator.

Syllabus

  • Unit 1: Pattern Matching Function Clauses
    • Change the Operation to Multiply
    • Clause Order Makes a Difference
    • Fix the Calculator Function Clauses
    • Pattern Matching with Lists
    • Pattern Matching with Maps
    • Struct Pattern Matching in Action
  • Unit 2: Using Guard Clauses
    • Update Guard Ranges for Fan Levels
    • Overlapping Guards in Action
    • Fix Guard Operators in Elixir Functions
    • Pattern Matching Beats Guard Functions
    • Reusable Guards for Cleaner Code
    • Reusable Guards for Fan Status
  • Unit 3: Pattern Matching with Case
    • Classify Users with Pattern Matching
    • Order Matters in Map Matching
    • Group Roles with Pattern Matching
    • Extracting Tokens with Pattern Matching
  • Unit 4: Using the Pin Operator
    • Switching from Guard to Pin Pattern
    • Pin Operator for List Updates
    • Stop Accidental Rebinding

Reviews

Start your review of Advanced Pattern Matching in Elixir

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.