Implement Enumerable in Elixir

Dunya Kirkali
4 min readMay 9, 2023
Photo by Karine Avetisyan on Unsplash

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.

--

--

Dunya Kirkali

I'm an engineering manager passionate about empowering engineers to deliver exceptional work through collaboration and innovation.