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:
Elixir: Combinations
Here’s a quick post about how to write a combinations
function in elixir
using pattern-matching and recursion:
Elixir: Cartesian Product
While working on a CSP (Constraint Satisfaction Problem)
in Elixir, I was in need to compute Cartesian product of a lists of variable
domains. Elixir being a declarative programming language, I was expecting
there to be function List.cartesian_product/1
that takes a list of
enumerables, but nothing like that existed. So, I resorted to the more
imperative list comprehension:
Vim: Hexdump
Today, I had the need of being able to view multiple iterations of a csv file
in hex, as I keep updating/saving it. That’s when I came across vim’s xxd
command.