Implement Enumerable in Elixir
4 min readMay 9, 2023
Today, we will learn how to implement the Enumerable
protocol in Elixir.
For those of you who live under a rock, Elixir is an awesome functional language. And protocols are a way of having polymorphism (as there are no classes in functional languages, polymorphism is not really a thing) allowing one to inject behaviour into a module.