Implement IO.Inspect in Elixir
2 min readDec 7, 2021
I’ve been joining the Advent Of Code every year and every year there is a puzzle that requires us to draw a map to do some calculations on it (eg. finding the shortest path from A to B).
How to represent such a puzzle in Elixir is quite straightforward (using a Map to store the coordinates where the key is a a tuple {x, y}) but debugging it is quite challenging. Especially when the puzzle input gets quite large.
Recently, José Valim did a live stream on Twitch where he solved Day 4. After solving it he went on to explain how he would go about…