I was refactoring a piece of code that I inherited in a codebase, which was
parsing date from an external source in various formats into Date in elixir.
The initial version of parse/1 function look something like the following:
defmodule DateParser do
<<_day_value::binary-size(1), space_or_comma::binary-size(1), _rest::binary>> =