String Concat Pattern Matching In Elixir
This is a neat pattern matching trick in elixir, its best explained with a simple example:
With a slightly different situation, It may seem like you could do this:
But sadly you'll need to use regex to do that because elixir will throw an error.
Tweet