Saving and Restoring LiveView State using the Browser Global customize for inspect data in Elixir

Using Elixir's "with" statement.

In this post, I describe where and why you would want to use a with statement, and how you can deal with some of the challenges and underlying assumptions. Additionally, you’ll read about a readability and clause differentiation trick using tuples.

https://dev.to/martinthenth/using-elixirs-with-statement-5e36