Learn you some pattern matching for great good!
summary
Explains how Elixir’s match operator binds and fails with a MatchError, shows lists are strict about order/length while maps match on subsets, and demonstrates multi-clause functions, case and cond plus guards and underscore defaults. Refactors a nested-if animal.sound example into separate function heads and private helpers for food/amount, producing clearer code that rejects bad input with function clause errors and a live demo that returns expected sounds and feed strings.
AI-written summary · about
chapters (6)
- 0:0003:46 - Intro
- 2:0309:28 - What makes the BEAM special?
- 7:1611:10 - :gen_server
- 11:1626:18 - Language Server Protocol: A quick primer
- 22:1928:28 - Demo. We're doing it live!
- 28:2432:13 - QnA
related talks
39mFunctional Concepts in Elixir
47mPattern Matching in Clojure
46mPoka Yoke Mistake proofing via Functional Programming
01h 03mFunctional Programming with C#
23mHow to teach Elixir to non-functional developers
41mFunctional programming: Give it a chance!
56mFunctional Programming with JavaScript
55mPain-free Functional Programming with Java 21
