Guards - simple restriction checking
Guards are a great way to check data limits. They are safe and can make the everyday work with the project more pleasant and, at the same time, limit the duplicated code. And it’s all in pattern matching!
Check on: https://bartoszgorka.com/guards-simple-restriction-checking
Read next ThinkingElixir 096: Reviewing Elixir with José Valim - Part 4