Skip to content
Breakpoint logobreakpoınt

Elixir Koans

Fill in the blanks so failing Elixir tests pass, one koan at a time

Three underscores mark every gap. The opening file asks you to replace ___ so that an assertion as plain as true == ___ holds, and the koans keep that pairing of mock-Zen titles and tiny assertions while the topics get heavier.

Play on github.com

Free · No login · Terminal · Beginner

Screenshot of Elixir Koans

About Elixir Koans

There are 24 lesson files. The early ones walk through Elixir's data types (strings, numbers, atoms, tuples, lists, keyword lists, maps, MapSets and structs), then sigils, pattern matching, functions and Enum. From file 15 the koans move into what sets Elixir apart: processes, Tasks, Agents and GenServers, followed by protocols, comprehensions, control flow, error handling, the pipe operator and the with statement.

Opinions on Hacker News are mixed in a useful way. One commenter found the exercises very basic but said the project shows off hot code reloading well; another credits it, together with Pragmatic Studio's course, with getting them ready to submit a code sample for a first Elixir role. Ruby Koans uses the same fill-in-the-blank format for Ruby.

Questions about Elixir Koans

How do I jump to a specific lesson instead of starting from the first koan?

Run mix meditate with the koan option and a lesson name such as PatternMatching, and a mistyped name prints the full list.

Does the runner work on Linux without extra packages?

Not quite, because the auto-runner depends on inotify-tools, so Linux users need to install that package.

Made this game? Claim it →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help