Implementing a peer-to-peer network in Elixir - Part 1: The Server (Ab)using Ecto as Elixir data casting and validation library

Elixir “with” syntax and guard clauses

In this blog post we will take a look at a simple example of refactoring Elixir code using with syntax (called a “special form” in the documentation), and guard clauses.

Elixir “with” syntax and guard clauses