Working in languages like Elixir and Rust is fun for many reasons. But one of
my favorite features is the formatter. Elixir (after 1.4) comes with a
formatter which is well integrated with mix
and can be called using
mix format
. At first, the idea of a machine changing the code that I wrote
for my project didn’t sound very exciting to me. But working in a team
environment and being able to configure the formatter based on what best
practices a project follows, made it all worth it. Moreover, the ability to
run it (mix format --check-formatted
or cargo fmt --check
) as part of the
CI to see if any new code is formatted, was a great added bonus.
One Piece 3D world Animation
About
Covid 19 Infection Model
COVID-19 Infection Model and Simulation
Covid 19 2D Maps (last updated 4/11/2020)
Summary
Elixir: Permutations
In the last post we saw how to write a combinations
function. So, in this
post, we will see how to write a permutations
function in elixir, again
using pattern-matching and recursion: