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.
Read next The Basics of Routing in Phoenix