Advent of Code 2019 - Day 1

I decided to record my Erlang solutions this year, to show how much I can fail in trying to find a decently effective solution and how I come up with code.

Here’s Day 1: