Iterator implementation for Elixir, more of a showcase than a real project