Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Pipelining might be my favorite programming language feature. Parent comment
fetch_data() |> case do {:ok, val, _meta} -> val :error -> "default value" end
This is for sequential conditions. If you have nested conditions, check out a where block instead. https://dev.to/martinthenth/using-elixirs-with-statement-5e3...
This is for sequential conditions. If you have nested conditions, check out a where block instead. https://dev.to/martinthenth/using-elixirs-with-statement-5e3...