Introducing Sage — a Sagas pattern implementation in Elixir The Basics of Routing in Phoenix

Implementing the Enumerable Protocol

In this episode we implement just three functions—reduce, count and member. In return, we get the dozens of utility functions provided by Enum for our btree struct, including map, random, shuffle, uniq and more.

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.