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.

youtu.be/KQ0rLrd2G4o