Writing idiomatic Elixir code

It’s called reduce and is a left fold AFAIR