TIL: How to check if an Elixir map has a given key in a guard?
Today’s Advent of Code puzzle inspired me to create this TIL. It may sound trivial, but in fact, it’s tricky if you are unfamiliar with the nuances of guards’ functioning.
Today’s Advent of Code puzzle inspired me to create this TIL. It may sound trivial, but in fact, it’s tricky if you are unfamiliar with the nuances of guards’ functioning.