Learn Elixir the functional way, from your first IO.puts to a small project built with pattern matching, recursion and the Enum module, with every exercise checked as you go.
8 lessons, 16 exercises. Runs Elixir 1.20.
Not started
Hello, output
Print text with IO.puts and IO.write, add comments, and see how Elixir runs a script from top to bottom.
Values and variables
Meet Elixir's basic types, bind values to names with =, and learn why data never changes in place.
Reading input and arithmetic
Read lines from standard input with IO.gets, turn text into numbers, and do maths with Elixir's operators.
Making decisions
Choose between paths with if, cond and case, and combine conditions with comparison and boolean operators.
Loops
Repeat work the Elixir way, with ranges, Enum functions, for comprehensions, recursion and an early exit.
Functions
Group code into modules, write named functions with several clauses and guards, and learn what a function can see.
Collections
Store many values in lists, tuples and maps, and transform them with the Enum module.
Strings and a small project
Slice, transform and inspect text with the String module, then combine everything so far into a receipt printer.
Your progress is saved in this browser. Sign in to keep it on every device.